Answer:
Due to mating
Step-by-step explanation:
The longer and more colorful tails evolved in peacocks in the process of natural selection in order to preserve the peacock species despite causing disadvantages for the males.
The Long and colorful tails ensured that the females got attracted for mating and subsequent reproduction to ensure they didn’t go extinct.