Matrera Castle was built in the 9th century by Omar ibn Hafsún to defend Iptuci, the most advanced city of the Cora de Ronda ...