Gujarat following the loss of two assembly seats in by-elections, Keshubhai Patel resigned and yielded power to Narendra Modi. BJP retained a majority in the 2002 election, and Narendra Modi remained as Chief Minister. On 1 June 2007, Narendra Modi became the longest serving Chief Minister of Gujarat. BJP retained the power in subsequent elections in 2007 and 2012 and Narendra Modi continued as the Chief Minister. After Narendra Modi became the Prime Minister of India in 2014, Anandiben Patel became the first female Chief Minister of the state.Vijay Rupani took over as Chief Minister and Nitin Patel as Dy. Chief
Narendra Modi in by-elections. Allegations of abuse of power, corruption and poor administration were made, and Patel's standing had been damaged by his administration's handling of the earthquake in Bhuj in 2001. The BJP national leadership sought a new candidate for the chief ministership, and Modi, who had expressed misgivings about Patel's administration, was chosen as a replacement. Although BJP leader L. K. Advani did not want to ostracise Patel and was concerned about Modi's lack of experience in government, Modi declined an offer to be Patel's deputy chief minister, telling Advani and Atal Bihari Vajpayee that he was "going to be