Castell de Rubió in Barcelona's Anoia region first appeared in historical records in 1065 when the Bishop of Osona transferred it to the Counts of Barcelona. Initially held by the Rubió family as castellans, the fortress subsequently passed to the Castellolí, Timor, and Boixadors families through the medieval period. The castle's most significant architectural feature is the fortified church of Santa Maria, a Gothic temple constructed between 1275 and 1317 that strengthened the complex's defensive capabilities. Today, visitors can examine the remains of the original circular tower and preserved wall sections that once defined its perimeter.