The Spanish prime minister has condemned the US-Israeli war against Iran while pledging to amend the country’s defense law Spanish Prime Minister Pedro Sanchez has pledged to amend the country’s defense law to bar Spain from participating in illegal wars ahead of Sunday’s snap general election.Speaking to supporters in Barcelona on Tuesday, the Socialist politician took aim at Israeli Prime Minister Benjamin Netanyahu over the war in Gaza and condemned the US-Israeli war against Iran as illegal, comparing it to the US-led invasion of Iraq in 2003.“In the next legislative term, we will amend the law so that Spain never takes part in an illegal war like the one we experienced 20 years ago in Iraq or the one we are witnessing today in Iran,” Sanchez said.“We are strengthening our commitment to saying ‘no to war’ and upholding international law. Spain is a country of peace,” he added.The newspaper La Vanguardia, citing government sources, reported that Sanchez plans to amend the National Defense Law, which regulates Spain’s participation in armed conflicts, to explicitly renounce war as a means of aggression or diplomatic pressure. Read more Spanish housing crisis fury erupts into violence after millions protest (VIDEOS) The legislation was adopted in 2005 in the wake of the invasion of Iraq, which Madrid supported under the conservative government of Jose Maria Aznar. The law requires parliamentary approval for overseas military operations not directly related to Spain’s defense or national interests and stipulates that such missions must comply with international law.Spain has refused to allow the US to use bases on its territory to support the bombing campaign against Iran and has closed its airspace to American aircraft involved in the war, drawing criticism from Washington. US President Donald Trump threatened to sever trade with Spain and branded the country a “horror show.”The US State Department accused Sanchez’s government of “deliberate efforts to enable and facilitate mass illegal migration into Europe” after more than 70,000 migrants arrived in Ceuta, Spain’s enclave on the North African coast, in July. Although most were apprehended and sent back, the incident strained Madrid’s relations with several other EU members, including Italy.Sanchez has been a vocal critic of Israel, describing its military campaign in Gaza as genocide. In 2024, Spain formally recognized Palestinian statehood, drawing condemnation from Israel. That same year, Israeli Ambassador Rodica Radian-Gordon accused Spanish Deputy Prime Minister Yolanda Diaz of anti-Semitism after she said “From the river to the sea, Palestine will be free.”Sanchez called the snap election in October after opposition lawmakers defeated two government decrees aimed at addressing the country’s worsening housing crisis.According to the latest polling average compiled by El Pais, the conservative People’s Party (PP) leads Sanchez’s Socialists by 31.5% to 29%, with right-wing parties collectively polling at 51.2%, compared with 38.7% for the left.