Spain’s acting Socialist prime minister, Pedro Sánchez, was chosen by a majority of legislators to form a new government in a parliamentary vote Thursday.
Mr. Sánchez was backed by 179 lawmakers in the 350-seat lower house of parliament. Only right-wing opposition deputies voted against him.
The vote came after nearly two days of debate among party leaders that centered almost entirely on a highly controversial amnesty deal for Catalonia’s separatists that Mr. Sánchez agreed to in return for vital support to get elected prime minister again.
Mr. Sánchez won the vote after clinching the support of six smaller parties, allowing him to achieve the majority lawmakers needed to be reelected and form another minority coalition government with the left-wing Sumar (Joining Forces) party.
Spain’s inconclusive national elections on July 23 left a highly fractured parliament. The center-right Popular Party received the most votes in the elections but failed to get enough support to form a government because of its alliances with the far-right Vox party.
The Socialists finished second with 121 seats but now have the support of the 179 lawmakers following a series of pacts.
It remains to be seen if Mr. Sánchez can maintain their support over the next four years.