0906 GMT October 15, 2018
Afshani was one of two final candidates shortlisted by the city council, and finally managed to defeat his rival Samiollah Makarem-Hosseini, the acting mayor of Tehran.
Afshani, a member of the reformist party Etemad Melli (National Trust) and the deputy interior minister for development affairs, was elected by securing 19 out of 21 votes.
He must resign from the post to start his job at the municipality.
During President Hassan Rouhani’s first term, Afshani served as the governor-general of Fars Province.
His election as the mayor of Tehran came after Mohammad-Ali Najafi, another reformist politician, resigned earlier this year over health problems.
Najafi was sworn in as mayor on September 5, 2017. His predecessor, Mohammad Baqer Qalibaf, held the post for 12 years.
IFP and Mehr News Agency contributed to the story.