Jawaharlal Nehru served as India's first Prime Minister from 1947 to 1964, making him the longest-serving PM in the country's history with approximately 17 years in office. His tenure oversaw India's transition to independence, establishment of democratic institutions, and initial nation-building efforts. Indira Gandhi served two separate terms, but not continuously for as long.