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 completed 2,063 consecutive days as chief minister of Gujarat, making him the longest-serving holder of that post, and the BJP won 122 of 182 state-assembly seats in that year's election. As Chief Minister, Modi favoured privatisation and small government, which was at odds with the philosophy of the RSS, usually described as anti-privatisation and anti-globalisation. His policies during his second term have been credited with reducing corruption in the state. He established financial and technology parks in Gujarat and during the 2007 Vibrant Gujarat summit, real-estate investment deals worth 6.6 trillion were signed. The governments led by Patel and Modi