Central to life in pious Salé and one of the oldest religious establishments in the country, the Grand Mosquée and medersa are superb examples of Merenid artistry. They were built in 1333 by Almohad Sultan Abu al-Hassan Ali. The mosque is closed to non-Muslims, but the splendid medersa is open as a museum. Similar to those in Fez or Meknès, it takes the form of a small courtyard surrounded by a gallery. The walls are blanketed in intricate decoration from the zellij base to the carved stucco and elegant cedar woodwork.