 In the Middle East, prior to the 10th century, market places were situated on the perimeter of the city.Along established trade routes, markets were most often associated with the caravanserai typically situated just outside the city walls.However, when the marketplace began to become integrated into city structures, it was transformed into a covered area where traders could buy and sell with some protection from the elements.