Indian Prime Minister Narendra Modi held talks with Iranian President Masoud Pezeshkian on Friday and underscored the need to protect the freedom of navigation and commerce, and the safety and well-being of seafarers, India’s foreign ministry said.

The talks were held on the eve of the annual summit of Brics leaders in the Indian capital, which will see the participation of Chinese President Xi Jinping and Iran’s President Masoud Pezeshkian, among others.

India is walking a tightrope in the conflict, boasting historical and cultural ties with Iran, strong, strategic relations with Israel and close friendships with Arab countries, where millions of its nationals live and work.

The South Asian nation has been particularly affected by attacks on vessels transiting the region, which have killed at least 10 Indians.

“The prime minister [Modi] reiterated India’s consistent position that all issues must be resolved through dialogue and diplomacy,” the ministry said in a statement.