Ansip's first cabinet took office on 12 April 2005 after being approved by Riigikogu by 53 members out of 101. His cabinet was formed with pragmatic calculations, as it consisted of ministers from free market liberal Reform Party of Estonia, populist and personalist Estonian Centre Party and agrarian People's Union of Estonia. Reform Party and People's Union had participated in the previous government led by Juhan Parts (of conservative Res Publica).
Parts resigned on 24 March 2005 after his Minister of Justice Ken-Marti Vaher (also member of Res Publica Party) was sacked by Riigikogu.
As in the dire economic situation the government turned out incapable to solve the problem of required budget cuts the Social Democratic Party left from the coalition on 21 May 2009 and its three ministers were relieved from their posts. Coalition talks with the People's Union of Estonia were derailed on 1 June 2009 by councils of the People's Union and of the Union of Pro Patria and Res Publica. Therefore, from 4 June 2009 the cabinet continued as a minority cabinet.