The biggest medieval madrassah in Khiva, Madrassah of Muhammad Amin-khan (1845-1855) is located opposite to Kunya-Ark at the gates of Ata-Darvaza. Its area is 78 xs60 m. Madrassah has 125 hudjras and could receive up to 260 pupils. The portal is crowned with five domes and flanked by corner towers. The inscription reads: "This perfect building will eternally stand brightening descendants". Hudjras on the second floor have loggias. They give a distinctive feature to the madrassah - open arch niches along external perimeter of the building. Rich d?cor includes brick mosaics, majolica, ornamentally carved doors and Ganch lattices (pandjara) of windows.