The Zapatero I Government was formed on 18 April 2004 following José Luis Rodríguez Zapatero's election as Prime Minister of Spain by the Congress of Deputies on 16 April and his swearing-in on 17 April, as a result of the Spanish Socialist Workers' Party (PSOE) emerging as the largest parliamentary force at the 2004 Spanish general election.