Spain's opposition to the U.S.-Israeli war on Iran is rooted in principles and respect for international law, Prime Minister Pedro Sanchez said as he defended his government’s “no to war” stance.

In an interview published Wednesday by El Diario, Sanchez said Spain’s position reflects a consistent foreign policy approach and has resonated beyond the country.

"When we said 'no to war,' there was a wave of pride in being Spanish not only within our country, but also among many societies across the world," he said.

Sanchez rejected criticism from opposition parties who accuse his government of taking an electoral stance against the conflict.

"This war was not provoked by Spain. It was a war driven unilaterally by two nations," he said. "We are not going to resolve the situation of instability in the Middle East with such a flagrant illegality."