ThevividcommercialactivityintheOttoman-periodKoyaiscorroboratedbythefactthatatleastthreekhans (caravanserais) used to exist in the city to house merchants. Onlythemostprominentoneofthem,MahmudAghaKhan,surviveduntilthepresentday,occupyingthecentral part of the bazaar close to the Grand Mosque, both covered bazaars (qaysariyas) and several house residences. Itwasfoundedin1277/1860-61andrepresentsatwostoreytypeofOttomankhanwithalargecourtyardbuiltonall foursides,withstablesandstorageroomsinthebasementandaccommodationspacesonthefirstfloor.Alldoors‘ framerevêtementsaredecoratedwithslightlyornamentedsocalledMosul-marbleslabs.Theroomsintheupperfloor containfire-placesasheatingfacilities.Theentranceportalislavishlydecoratedwithfloralornamentsandcontainsa persian insccription which mentions the date of erection and blesses the owner of the khan.Thekhanwaspreservedinaroughlyoriginalstateuntil1993whenthedilapidatedbuildingcomplexwaspartlyrepaired attheexpenseoftheowners.Theseinterventions,however,didnotpreventlarge-scaleruinationinthe2010swhichthe arcadesofthewestandeastwingsfellvictim.InSeptember2021,theruinedkhanwasdocumentedindetailanda project of emergency stabilization was underway with the prospect of gradual restoration of the entire complex.