Complex sentence: On 12 March 1786, Agha Mohammad Khan made Tehran his capital, which by then had a population of 15,000-30,000 people.
Split into simpler sentences: On 12 March 1786, Agha Mohammad Khan made Tehran his capital. By then the city had a population of 15,000-30,000 people.