The place is well communicated with the basin of the river Alcaucín and the Boquete de Zafarraya, access roads to the Granada high plateau.
The scarce archaeological record in the mountainous arc formed by the Almijara, Tejeda and Alhama sierras, which served as a backdrop during these stages, shows this territory as a foreseeable frontier between the Byzantine and Visigothic worlds, exercising control functions, mainly in the area of Campo de Zafarraya.
In the early stages of the formation of al-Andalus, written sources report that Arab and Berber armies penetrated this area of the Upper Axarquia only sparsely. Although there is evidence of the establishment of Berber groups in Zafarraya or Alhama from the second half of the 8th or early 9th century onwards, in general, the sparse population that occupied this rugged mountainous area was presumably of indigenous origin; they are those identified in the written sources as Mozarabs. The toponymy of some of the towns in the area, such as Sayalonga, Sedella or Corumbela, refer to this pre-Islamic origin.
La Mesa de Zalía would be one of the places inhabited by these communities. The location of wall remains, ceramic materials found on the surface and the presence of tombs excavated in the rock point to occupation between the 9th and 11th centuries.
The city of Zalía was located on the mesa of the same name (Mesa de Zalía), at the gates of the Zafarraya pass. Some authors identify it with the Phoenician city of Tágara, others, however, connect it with the mythical Odiscya.
There is a Christian legend which tells us that the bishop of Malaga, Saint Patrick made a trip to the town to convert its people, but he did not achieve his aims. It is said that as a punishment, he caused the ground to open up and snakes began to emerge and bite the inhabitants of Zalía during the day. The inhabitants had to flee the place and the town is deserted to this day.