After Moulay Ismaïl's death at the age of eighty (or around ninety by the 1634 birthdate) in 1727, there was another succession battle between his surviving sons. His successors continued with his building program, but in 1755 the huge palace compound at Meknes was severely damaged by an earthquake. By 1757 his grandson, Mohammad III moved the capital to Marrakesh.