https://en.wikipedia.org/wiki/Five_Nations_Railway_Corridor
On May 9, 2023, the first trial run of cargo from Iran to Afghanistan via the Khaf-Herat railway was completed. This shipment included 17 wagons that transferred 655 tons of railway equipment that will be used in the further construction of the rail line. The Khaf-Herat railway is 225 kilometers long, with 140 km of the railway track traversing Afghanistan and the remaining 85 km running through Iran. The construction of the Khaf-Herat railway line, which links Khaf in eastern Iran with Herat in western Afghanistan, began back in 2007.
...
The railway is expected to especially benefit the landlocked Afghanistan, which would gain direct access to the Iranian seaports of Chabahar and Bandar Abbas. Through Iran, the line can connect to the Turkish railway network.
Incidentally, as the US goes to war with Iran, Pakistan is going to war with Afghanistan.
And everyone's continuing to freak out about the Chinese economy usurping the role once held by the NATO block. Crazy how all this happens at once.