President Ali Khamenei (1939-2026) visited China and stood on the Great Wall in Beijing, May 1989.
The very next month, Ayatollah Khomeini passed away, and Khamenei became Supreme Leader.
Since then, he has never left Iran for any foreign trip.
China was the last country he ever visited abroad.