Diwali marks the return of Lord Rama to Ayodhya after 14 years of exile and his victory over Ravana. The citizens of Ayodhya lit lamps to celebrate his return and coronation. Therefore, celebrating his return to the throne is the primary traditional reason.