lost the 1977 Indian general election to the Janata Party, whose leader Morarji Desai became the first non-Congress prime minister. After Desai resigned in 1979, his former associate Charan Singh briefly held office until the Congress won the 1980 Indian general election and Indira Gandhi returned as prime minister. Her second term as prime minister ended five years later on 31 October 1984, when she was assassinated by her bodyguards. Her son Rajiv Gandhi was sworn in as India's youngest premier. Members of NehruGandhi family have been prime minister for approximately 38 years. After a general election loss, Rajiv Gandhi's five-year term ended; his former cabinet colleague, Vishwanath Pratap Singh of the Janata Dal, formed the year-long National Front coalition government in 1989. A seven-month interlude under prime minister Chandra Shekhar followed, after which the Congress party returned to power, forming the government under P. V. Narasimha Rao in June 1991, Rajiv Gandhi having been assassinated earlier that year. Rao's five-year term was succeeded by four short-lived governments—Atal Bihari Vajpayee from the Bharatiya Janata Party (BJP) for 13 days in 1996, a year each under United Front prime ministers H. D. Deve Gowda and Inder Kumar Gujral, and Vajpayee again for 19 months in 1998–99. In 1998, Vajpayee's National Democratic Alliance (NDA) won the general election, the first non-Congress alliance to do so, and he served a full five-year term as prime minister. The Congress, and its United Progressive Alliance won the general elections in 2004 and 2009, Manmohan Singh serving as prime minister between 2004 and 2014. The BJP won the 2014 Indian general election, and its parliamentary leader Narendra Modi formed the first non-Congress single party majority government. Modi has served as prime minister since, his party winning the 2014 Indian general election. List of prime ministers of India Key No.: Incumbent number Assassinated or died in office Returned to office after a previous non-consecutive term Resigned Resigned following a no-confidence motion Legend List of prime ministers by length of term List by party Parties by total duration (in years) of holding Prime Minister's Office See also President of India Vice President of India List of presidents of India List of vice presidents of India List of deputy prime ministers of India List of children of prime ministers of India List of prime ministers of India by previous experience List of heads of state and government of Indian