A small one-storied building standing opposite to Khodja Mirhamid Khanaka (mosque) is Koba madrasah. It was built in the 15th century. Its architecture is rather traditional: on perimeter of a square yard there are built khudjras (cells) for pupils, in corners - classrooms (darskhona). Khudjras and classrooms have dome ceilings and windows with ganch lattices. The entrance gallery is decorated with a portal. For prays they used Khodja Mirhamid mosque. Koba madrasah with its structure looks like a caravan-sarai, because it is was built in the 16th century on the basis of an ancient caravan-sarai. The building was restored at the end of the 20th century.