page_title: List of castles in Spain
section_title: Barcelona
hierarchical_section_title: List of castles in Spain / Catalonia / Barcelona
caption_attribution_description: Español: Parador de Cardona vistas
context_page_description: The castles in Spain were built mainly for the country's defense, particularly with respect to fortification. During the Middle Ages, northern Christian kingdoms had to secure their borders with their Muslim southern neighbours, thus forcing both Christian and Muslim kings to grant border fiefs to their liege noblemen so as to keep and maintain defensive fortresses. When the Reconquista advanced, those border castles lost their initial purpose, and, as in the rest of medieval Europe, they were used as noble residences and fief-keeps. Sporadic threats of war maintained their initial military purposes as enemy invasions were common. In some locations, such as the Basque country, fiefdoms did not exist as such, and noble families could not afford nor did they need huge fortresses, giving rise to many tower houses. In Muslim Spain many castle-palaces were built: the petty taifa kingdoms that arose after the fall of the Caliphate of Córdoba were militarily weak thus castles began taking on a more aesthetic purpose.
context_section_description: Castle of Burriac
  Castle of Cardona
  Castle of Castelldefels
  Castle of Claramunt
  Castle of Dosrius
  Castle of Montjuic
  Castle of Orís
  Castle of Santa Florentina
  Castle of Tagamanent
  Castle charterhouse of Vallparadís
  Castle of Castellbell
  Castellciuró
  Castle of Centelles
  Castle of Cervelló
  Castle of Cornellà
  Castle d'Eramprunyà
  Castle of Gallifa
  Castle of la Roca del Vallès
  Castle of Mogoda
  Castle of Palafolls
  Castle of Pallejà
  Castle of Plegamans
  Castle of la Pobla de Lillet
  Castle of Castellcir
  Castle of Rajadell
  Castle of Rubí
  Castle of Taradell
  Castle of Bell-lloc
  Castle of Montesquiu
  Castle of Montpalau
  Castle of Montbui (Bigues)
  Castle of Vilassar
  Castle of Granera
  Castle of Penya del Moro
  Tower Vermella
  Castle of the Camp de la Bota
caption: Castle of Cardona
exif: {"Image Orientation": "Horizontal (normal)", "Image XResolution": "300", "Image YResolution": "300", "Image ResolutionUnit": "Pixels/Inch", "Image Software": "Adobe Photoshop 7.0", "Image DateTime": "2007:05:08 16:56:53", "Image WhitePoint": "[0, 0]", "Image PrimaryChromaticities": "[0, 0, 0, 0, 0, 0]", "Image YCbCrCoefficients": "[0, 0, 0]", "Image YCbCrPositioning": "0", "Image ReferenceBlackWhite": "[0, 0, 0, 0, 0, 0]", "Image ExifOffset": "306", "EXIF ExposureTime": "0", "EXIF FNumber": "0", "EXIF ExposureProgram": "Unidentified", "EXIF ISOSpeedRatings": "[0, 0]", "EXIF ExifVersion": "0210", "EXIF CompressedBitsPerPixel": "0", "EXIF ShutterSpeedValue": "0", "EXIF ApertureValue": "0", "EXIF BrightnessValue": "0", "EXIF ExposureBiasValue": "0", "EXIF MaxApertureValue": "0", "EXIF SubjectDistance": "0", "EXIF MeteringMode": "Unidentified", "EXIF LightSource": "Unknown", "EXIF Flash": "Flash did not fire", "EXIF FocalLength": "0", "EXIF ColorSpace": "Uncalibrated", "EXIF ExifImageWidth": "2805", "EXIF ExifImageLength": "2244", "EXIF FocalPlaneXResolution": "0", "EXIF FocalPlaneYResolution": "0", "EXIF FocalPlaneResolutionUnit": "0", "EXIF ExposureIndex": "0", "EXIF SensingMethod": "0", "EXIF FileSource": "0", "EXIF SceneType": "0"}