Answer:
D. Attract a mate.
Step-by-step explanation:
No matter the species of peacock, these colorful creatures boast impressively sized and patterned plumage that they fan out for display purposes. It isn't an act of vanity, though -- peacocks fan out their feathers as part of a courtship ritual to attact a mate.