In the X Legislature, from December 22, 2011, the Ministry is renamed "Employment and Social Security", while retaining the same competencies. In the middle of the 12th Cortes Generales, the biggest opposition party, the Spanish Socialist Workers' Party, presented and won a vote of no confidence against the second government of Mariano Rajoy. After this event, Sánchez appointed Magdalena Valerio as the new Labour Minister, and he renamed the Department as Ministry of Labour, Migrations and Social Security.