Spain has closed its airspace to US planes involved in attacks on Iran, Madrid's defence minister Margarita Robles has said.

We will not authorise the use of Moron and Rota [military bases] for any acts related to the war in Iran, she added, indicating that this position was communicated to the American government from the start.

Foreign affairs minister José Manuel Albares stated that the goal of this decision is to not do anything that could encourage an escalation in this war. The US has yet to comment; however, President Donald Trump has previously threatened potential trade sanctions against Spain due to its opposition to the Iran war.

The Spanish Prime Minister Pedro Sánchez has been vocal in denouncing the US and Israeli attacks on Iran, labeling them reckless and illegal. Earlier in March, Spain denied the US access to the two jointly run military bases at Rota and Morón.

All flight plans associated with operations targeting Iran have been denied, including those for refueling aircraft, according to Sánchez. He emphasized that Spain is a sovereign nation and opts out of illegal wars.

US bombers involved in the conflict are currently stationed at the RAF Fairford base in the UK, causing them to reroute their flights away from much of the Iberian Peninsula.

Spain's commitment to not participate in military escalations reflects its desire to uphold international law and among its citizens, resonating with a larger anti-war sentiment expressed by Sánchez in public addresses.

In recent communications, the Iranian embassy in Spain acknowledged Spain's responsible position towards international law and indicated openness to regarding transit through the Strait of Hormuz.