India held its first general election in 1977 and elected Morarji Desai as prime minister in 1977, making him the first non-Congress prime minister. Desai's government pursued pro-business economic policies and signed a peace accord with Pakistan in 1978 to end hostilities. However, Desai's government lasted only two years as it struggled with political challenges and an economic crisis.