The widespread range of "P. demoleus" indicates the butterfly's tolerance and adaptation to diverse habitats. It is found in savannahs, fallow lands, gardens, evergreen and semi-evergreen forests, and shows a preference for streams and riverbeds. In India, it is mostly found in the plains, but can be found on the hills of peninsular India and up to in the Himalayas. It is common in urban gardens and may also be encountered in wooded country. The butterfly is also a very successful invader, its spread appearing to be due to its strong flight, increase in urbanisation and agricultural land use that opens up new areas for dispersal, and greater availability of food plants.