Located next to the sea, it is believed that the first fortification sited on the bar of the River Lima estuary dates from the reign of King Afonso III (13th century). However, the earliest certain date is the 15th century, when a fortress was built there that would have been completed in the following century, in the reign of King Manuel I. This is indicated by various Manueline architectural features, notably the 'Roqueta Tower' in the south-west bastion of the present fortress.
In the late 16th century, the fortress underwent a series of improvement works, having already been under Spanish domination in the reign of Philip II (Philip I of Portugal). And so the current fortress, with its polygonal floor plan, was built based on a design by Filippo de Terzi, the most famous architect of military buildings of that period.
References:The Temple of Edfu is one of the best preserved ancient shrines in Egypt. It was built in the Ptolemaic Kingdom between 237 and 57 BC.
Edfu was one of several temples built during the Ptolemaic Kingdom, including the Dendera Temple complex, Esna, the Temple of Kom Ombo, and Philae. Its size reflects the relative prosperity of the time. The present temple initially consisted of a pillared hall, two transverse halls, and a barque sanctuary surrounded by chapels. The building was started during the reign of Ptolemy III Euergetes and completed in 57 BC under Ptolemy XII Auletes. It was built on the site of an earlier, smaller temple also dedicated to Horus, although the previous structure was oriented east–west rather than north–south as in the present site.