Castell de Foix stands as impressive ruins atop a rocky cliff, dominating the valleys of the Foix River and Pontons stream in the Alt Penedès comarca near Torrelles de Foix, Barcelona province. First documented in 1067 as a boundary marker in territorial transfers, the fortress was built to control strategic river valleys in the pre-Reconquista frontier landscape. Nearby stands the Sanctuary of Santa Maria de Foix, a 12th-century hermitage consecrated in 1309, situated at 661 meters elevation and now intertwined with the castle's historical narrative. The site occupies an elevation of approximately 680 meters above sea level, offering commanding views across the Font-Rubí mountain range and representing the complex interplay between military fortification and religious settlement in medieval Catalonia.