Complex sentence: Damage caused by the earthquakes of 1648 and 1763 were repaired in 1831 under the reign of Sultan Mahmud II. In 1762 was built the minaret, which was demolished in 1940 and built again in 1956.
Split into simpler sentences: Damage caused by the earthquakes of 1648 and 1763 were repaired in 1831 under the reign of Sultan Mahmud II. In 1762 the minaret was first built. It was demolished in 1940 and built again in 1956.