With an extension of 45,92 km2 Castell de Castells is located inside the Marina Alta, halfway between the coastal town of Denia and Alcoy, an inland industrial town.
It has an altitude of 549 metres and is surrounded by mountains in all its perimetre. The most important ones are: Serrella, Aixortá, Forat Negre and Alfaro.
Like the majority of all the regional towns and nearby regions, the origins of the present town are to be found in the Balearic families who repopulated these territories after the Reconquest. However, there is documentary evidence of other three settlements in the Arab period, which are: Bit-la, Ayalt y Petracos.
The history of Castells, from written sources, cannot be referenced much later than the 13th century, although the discovery of the cave paintings in the Plá de Petracos sanctuary, which reveals that the first settlers date back 8,000 years of antiquity approximately.
The first records may be found in the chronicles written by Jaime I. After the conquest of the capital, Valencia, the rest of the kingdom was due more to a policy of local pacts, with capitulations that respected the lives and property of the defeated muslims.
It is precisely in the bilingual treaty of the 'pouet', signed in 1245 between the first-born son of James I and the Arab warlord Al-azrach, where the latter paid homage to the King of Aragon, respecting his lordships. Castell de Castells is mentioned as 'Castiel' in the Catalan text and Qastal in the Arabic text.
Castells was given to the Order of Calatrava and was repopulated with Christians from other parts of the kingdom and even from nearby kingdoms, with immigration of Balearic origin being especially important in the Marina.
From that moment, a series of uprisings began on the plart of the Arab leader, which led to the breakding of the previosly signed pacts and the expulsion of the majority of Muslims.
After centuries of tensions, attempts at evangelisation and the hardening of measures againts the Moors, their total expulsion in 1609 was carried out, putting an end to their multi-secular presence on the peninsula. It was precisely in Petracos where the last battle was fought.