Spain’s parliament on Wednesday approved Prime Minister Pedro Sanchez’s decree formalizing an arms embargo on Israel, aimed at ending what he has denounced as the “genocide in Gaza”.

Parliament backed by 178 votes to 169 the decree announced in September by Sanchez, one of the most virulent critics among world leaders of Israel's devastating two-year-old war in the Palestinian territory.

The support of far-left party Podemos, which has four MPs and had criticized the decree, helped swing the vote the leftist minority coalition's way after days of speculation about their lawmakers' position.

The government says it had already banned buying weapons from or selling them to Israel since the start of the war, sparked by the unprecedented Hamas attack on Israeli soil on Oct. 7, 2023.

But Sanchez announced last month a decree to "consolidate in law" the embargo as part of a series of measures against Israel's offensive.