Two historical madrasah are situated in the center of Ichan-Qala to the left of the road going from Ata-darvaza gates to Palvan- darvaza.The first is connected with Arab- Muhammad-khan (1602-1623) from the Chinggisids and the second relates to Muhammad-Amin-inak (1763/70-1790), the founder of the Manghit dynasty. Madrasah of Arab-khan was built in 1616 to commemorate the transfer of Khorezm's capital from Kunya-Urgench to Khiva. It was reconstructed in 1838. Madrasah of Muhammad- Amin-inak was built in the second half of the 18th century. It keeps graves inside pylon of the southern aivan. A legend says it might be a tomb either of khan Muhammad-Amin-inak or his little son.