Description
You are in the upper part of the village of Fontllonga, on one of the westernmost foothills of the serra de Sant Mamet, above the embassament de Camarasa, where the remains of an old medieval fortress stand. Its origins may lie in an Andalusi watchtower, part of the network of lookout towers that defended the Upper March of al-Àndalus between the 9th and 11th centuries, located between Balaguer and Montsec. There is, however, no conclusive evidence, and the characteristics of the archaeological remains that have survived to the present day set it apart from the other frontier castles scattered across the area.
In any case, the earliest written record of the castle dates from 1049, shortly after the area came under the control of the counts of Urgell. It records that the castle belonged to the Meià family. In 1312, Pere Ayerbe, a descendant of the family, exchanged the property with King Jaume II, and the Fontllonga fortification became part of the Crown's dominions. It remained so until the late 14th century, when King Pere the Ceremonious incorporated it into the lands of the marquisate of Camarasa.
You are standing in front of an isolated rectangular building, with a group of walls on its southern side. From this, it can be inferred that the entire hilltop must have formed part of a castle complex. It may originally have served a military, defensive or lookout purpose, but it became established as a residence. Some decorative and architectural features make the building look more like a fortified house or a small palace than a castle. It also has a stable and a cellar in the basement, which could be accessed directly. Different types of dressed stone can be seen, which may correspond to various stages of construction.
Unlike the Parish Church of Sant Miquel de Fontllonga, there is no trace of a link between the castle and the Priorat de Santa Maria de Meià. One further detail, however, is that a 17th-century source noted that the building was already uninhabitable and abandoned at the time.

