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
Yogesh Chander Modi incidents he probed was the Naroda Patiya massacre. The SIT cleared Narendra Modi, who at that time was Gujarat’s Chief Minister. Controversy related to Haren Pandya Case Another key case he handled in Gujarat during his posting in the CBI during the tenure of Narendra Modi as chief minister of Gujarat was the murder of Haren Pandya, once a political rival to Narendra Modi, in Gandhinagar in 2003. The probe which was headed by Y.C. Modi was slammed by the Gujarat High Court for “ineptitude resulting into injustice” & that "the investigating officers concerned ought to be held accountable for