Castell de Ribatallada is a 12th-century fortified farmhouse located at the hilltop boundary between Castellar del Vallès and Sabadell in Vallès Occidental. Documented from 1060 and later granted in fief by Count Ramon Berenguar IV in 1136, the castle passed through ownership of notable families including the Montcada, Clasquerí, and Togores before becoming a peasant farmstead by the late 14th century. The partially ruined structure reveals its transformation from feudal fortress to agricultural dwelling, reflecting the socioeconomic shifts of medieval Catalonia. Today the site stands as a reminder of the region's defensive heritage and complex land tenure systems.