Mdina was destroyed with every invasion of Malta and rebuild on top of the ruins of the old city.
Mdina was also the headquarters of the Knights of Malta, protectors of the island and its police. The Knights Templar are related to the Knights of Malta.