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 indicate that the Arab and Berber armies made only limited inroads into this area of the Alta Axarquía. Although there is evidence of Berber groups settling in Zafarraya or Alhama from the second half of the 8th century or the early 9th century, the sparse population inhabiting this rugged mountainous area was, as might be expected, generally of indigenous origin; these are the people identified in written sources as Mozarabs. The place-names of some of the towns in the area, such as Sayalonga, Sedella and Corumbela, point 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.