During the successive Muslim offensives in 1116 and 1117 castles "Castelo de Miranda do Corvo" and "Castelo de Santa Eulália" were conquered and destroyed, which caused the desertion of castle "Castelo de Soure". These castles provided a line of defence for Coimbra region and now castle Penela was threatened. Perhaps this position was also lost, which would explain king Afonso I Henriques assaulting it in 1129, although this version is not supported by any sources. There are documents attributed to the period when a Chart of Foral was granted to the town, which reference a donation of a house inside the castle dated by 1145. This puts in question the assertion that the castle was conquered in 1148, as it is claimed by historian Frei António Brandão ("Monarchia Lusitana", 1632), which is also improbable in context of the Conquest of Santarém, and Lisbon since 1147 when the line of Muslim defences was pushed to river Sado.