In 1551, Ottomans landed at Marsamxett and marched upon the Grand Harbour, but did not attack as they found strong defences built by the Order of Saint John. This skirmish was followed by an unsuccessful attack against Mdina, and successful sacking of Gozo and conquest of Tripoli. After this attack, Fort Saint Elmo was built to guard both Marsamxett and the Grand Harbour.