A series of caravanserais ( rooming houses for the camel caravans that were the main method of transporting goods ) , or khans as they were known in Egypt during the Fatimid era , were built here by Emir El-Khalili , giving the market its name .
The market received as many as a hundred caravans today , so the rooming houses had to be built with high capacity in mind .