This municipality, comprising Lobras and Tímar, was founded during the early years of Islamic domination. However, the presence of an inactive mercury mine suggests that there was likely an earlier settlement. This is further supported by the Celtic origin of the place name Lobras and the possible Iberian origin of the place name Tímen (Tímar), as well as some Iberian-Roman archaeological remains found in the municipality. In any case, the earliest written record of Lobras and Tímar is provided by Ben Aljatib (1313–1374), minister to Mohamed V, who cites a twelfth-century writer's description of the Kingdom of Granada.