The UPSC Mains examination takes place a few months (3-4 months) after the Prelims. The time difference between UPSC Prelims and Mains allows candidates to prepare thoroughly for the Mains examination after knowing their Prelims results.