Saudi Arabia, Turkey and Pakistan have signed a joint defence agreement, saying an attack on one of them would be seen as an attack on all three.

The pact was announced at a meeting between Saudi Crown Prince Mohammed bin Salman, Turkish President Recep Tayyip Erdogan and Pakistani Prime Minister Shehbaz Sharif in the Saudi city of Mecca.

After the US and Israel attacked Iran on 28 February, Tehran and its allies struck targets in Saudi Arabia and other Gulf states and disrupted traffic through the Strait of Hormuz, a major oil shipping channel, and the Red Sea.

The Mecca agreement has drawn a sharp reaction from Tehran, where an senior member of parliament said it would not help Saudi Arabia.

“The Saudis should know that a paper agreement with Turkey and Pakistan does not bring them security, just as years of unilateral milking of the Americans did not bring them security,” Ebrahim Rezaei, a member of National Security commission, wrote on his X.

Saudi Arabia and Pakistan had already announced a joint defence pact last year.

The new Mecca Joint Defence Agreement sees three of the world’s most powerful Muslim nations come together to offer mutual defence guarantees.

It aims “to strengthen collective deterrence against any act of aggression, and stipulates that any armed attack against any one of the three States shall be regarded as an attack against them all”, a joint statement reads.

“It further provides for the enhancement of all aspects of defence co-operation among the three States.”

Although the pact pledges mutual support, it provides no specifics on the obligations of each party. A Turkish official quoted by Reuters news agency said the pact was “purely defensive in nature”.

Pakistan, Saudi Arabia and Turkey each bring different qualities to the table, with each wanting something different out of it.

For the Saudis, this gives an extra level of security in a region whose security architecture has been upended by the US and Israel’s war with Iran.

Last month, Yemen’s Iran-backed Houthi rebels – who control much of the north-west of the country – announced a “maritime embargo” against Saudi Arabia and targeted Saudi airports, oil facilities and tankers in the Red Sea.