In 1258 the relics of the Apostle Thomas were brought to Ortona by the sailor Leone Acciaiuoli. In the first half of the 15th century its walls were built, and during this period Ortona fought with the nearby town of Lanciano in a fierce war that ended in 1427. On June 30, 1447, ships from Venice destroyed the port of Ortona; consequently the King of Sicily at that time commissioned the construction of a Castle to dominate the renovated port. In 1582 the town was acquired by Margaret of Parma, daughter of Emperor Charles V and Duchess of Parma. In 1584 Margaret decided to build a great mansion, known as Palazzo Farnese, which was never completed due to her death.