First built in 1147, but demolished since it was not correctly aligned with Mecca, the "mosque of the booksellers", was finished in its present shape in 1199. It has ever since been the landmark of Marrakech, rising up from the low houses and markets around.