Atal Bihari Vajpayee served as the prime minister thrice. He was the first leader from the Bharatiya Janata Party to become the prime minister.