Nonetheless, after the Almohads, the gate was restored by the Marinid sultan Abu Yusuf Ya'qub in the 13th century and was repaired or rebuilt in the 18th century after the destruction of the 1755 earthquake.