It's a surprisingly frequent mix-up: people confusing the capitals of two major Middle Eastern nations that share a border, a long history, and—in English—similar-sounding names. Let's set the record straight once and for all.
Baghdad is the capital of Iraq. Founded in the 8th century as the Abbasid Caliphate's glittering "Round City," it has been the political and cultural heart of Mesopotamia for over 1,200 years.
Tehran is the capital of Iran. A relative newcomer, it became the Qajar dynasty's capital in 1796 and has since grown into a sprawling metropolis of over 9 million people at the foot of the Alborz Mountains.
The two cities are roughly 675 kilometers (420 miles) apart—a journey of about 8 hours by road through the Zagros Mountains. While both are historic centers of Persianate and Islamic civilization, they anchor distinct modern nations with different languages (Arabic vs. Persian), political systems, and regional roles.
So next time the question arises: Baghdad = Iraq, Tehran = Iran. Simple as that.