Castell de Vilademàger is a medieval fortification in La Llacuna, in the Anoia region of central Catalonia. First documented in 987 in a donation by Count Borrell II of Barcelona, the castle was constructed at the end of the 10th century with an upper defensive complex and lower enclosure containing the church of Sant Pere. The upper enclosure features a distinctive quadrangular tower with cylindrical elevation and seignorial residential structures. After suffering damage during the Spanish Civil War, restoration efforts in the 1980s revealed early 14th-century murals within the chapel. The site represents a significant example of early medieval Catalan architecture blending military and religious functions.