Iran and the Taliban exchanged heavy gunfire on the Afghan border, killing and wounding troops and escalating tensions over water rights.
Iran's deputy police chief accused the Taliban of opening fire first, and the fighting killed two people, one from each country, and wounded others.
The Milak border crossing was closed until further notice.
Iran vowed to respond decisively to any border trespassing and aggression, and the Afghan Defense Ministry called for dialogue.
The Taliban seized
Afghanistan in August 2021, and Iran has maintained relations with the country's new rulers while calling on them to allow women and girls to go to school.
Iran and
Afghanistan have been engaged in diplomatic talks to resolve issues between the two countries.
However, tensions have been rising, with a video purportedly showing a standoff between Iranian forces and the Taliban.
Pro-Taliban accounts online have also shared a video with a song calling on the acting defense minister, Mullah Mohammad Yaqoob, to stand up to Iran.
The song says that the Taliban are not the government's slaves and that Mullah Yaqoob will stand against Iran.
This indicates that tensions between Iran and
Afghanistan remain high, despite recent diplomatic efforts.