Castell de Torcafelló, located in Maçanet de la Selva in Girona province, was built around 1080 and functions as a declared cultural property of national interest. Originally built as a boundary fortress under the Count of Girona and later linked to the Cabrera lineage in the 12th century, the castle's history encompasses military, religious, and administrative functions. Following abandonment in the 20th century, a comprehensive restoration by the Taller d'História association took place between 1985 and 1992, with archaeological excavations in 1999-2000 revealing Roman, medieval, and modern remains that illuminate the site's long occupation.