Simplify the following text for a Grade 9 native English-speaking person.
Original: Finally , Tehran became the capital of Iran , in 1795 , when Agha Mohammad Khan , became Iran King .
Simplified: Tehran finally became the capital of Iran in 1795 , when the Qajar king Agha Mohammad Khan was crowned in the city .