The Rajoy I Government was formed on 22 December 2011 following Mariano Rajoy's election as Prime Minister of Spain by the Congress of Deputies on 20 December and his swearing-in on 21 December, as a result of the People's Party (PP) emerging as the largest parliamentary force at the 2011 Spanish general election.