Following the Indian general election of 1977, which was held after the Emergency, the Janata Party coalition came to power, ending the long rule of the Indian National Congress. Morarji Desai was sworn in as the Prime Minister on March 24, 1977.