Castell de Rocafort de Vallbona crowns a rocky hilltop in Sant Martí de Riucorb, Urgell, an irregular construction built from hewn stone blocks displaying Romanesque foundations with three distinct constructive phases from successive medieval reconstructions. First documented in 1164, the castle achieved prominence after 1209 when the abbess of Santa María de Vallbona de les Monges acquired all dominical rights, progressively establishing complete territorial control during the 13th century. The fortress's rounded corners and layered architectural evolution reflect both its strategic defensive function and the complex power dynamics between secular nobility and religious institutions that characterized medieval Catalan territorial organization.