Ashok Chavan was sworn in as Chief Minister of Maharashtra for the first time in 2008, after his predecessor, Vilasrao Deshmukh resigned the office in the aftermath of 2008 Mumbai terrorist attacks. The first Chavan ministry governed until the 2009 Maharashtra Legislative Assembly election, which resulted in a victory for Chavan-led Congress-NCP alliance and Chavan forming his second ministry.