The Rajoy II Government was formed on 4 November 2016 following Mariano Rajoy's election as Prime Minister of Spain by the Congress of Deputies on 29 October and his swearing-in on 31 October, as a result of the People's Party (PP) emerging as the largest parliamentary force at the 2016 Spanish general election.