Built 12th century. Burned & rebuilt. Used to be a stop along the Silk Road. Traders could stay free for 3 days here, sell their wares & get news. The animals were housed in the central section, now home to pigeons. If you go into the central section, your head is in danger from the roosting, pooping birds.
Stairway supposedly for calling prayers but could also have served as look-out point