On 24 February, José Sócrates won the 2005 legislative elections with an absolute majority, becoming the Prime Minister of Portugal. On 25 February, he was called by the President of the Republic, Jorge Sampaio, to form government with the newly elected parliament.
Sócrates and the other members of government (XVII Constitutional Government) took office on 12 March of the same year.