Peafowl follow a certain routine every day. They roost overnight in large groups in tall, open trees. That way they are safe from predators during the night, and the males can travel through the branches. In the morning, they break up into small groups. In the nonbreeding season, these are usually groups of all peacocks or all peahens; but during the breeding season, there are harem groups of one peacock and several peahens or all bachelors. These groups forage on the ground for grain, insects, small reptiles and mammals, berries, figs, leaves, seeds, and flower parts. During midday, peafowl drink, preen their feathers, and rest in the shade. Once it cools down, they go back to foraging for food, take one last drink, and then return to their roost for the night.