In XII century, under the leadership of Arslan-khan, the city was completely rebuilt. He also decided to create a complex of Poi-Kalyan. The minaret appeared at the same time, and the present cathedral mosque and Miri Arab madrassah appeared only in the 16th century. It is easy to guess that this place has been chosen not casually: there was already a mosque here in the past. But when the design was drawn up, all that was left were ruins. The new building could seat about 12,000 people for simultaneous prayer. It was the second highest in the country. The minaret is more than 46 meters high. The madrasah is still used as an educational institution.