The purpose of a peacock's elaborate display of its colorful feathers, known as its tail or train, is primarily for courtship and mating. The colorful and extravagant feathers are used to attract a mate and demonstrate the health and genetic fitness of the peacock to potential peahens. The more vibrant and impressive the display, the more likely it is to attract a mate.