 Although they found traces of prehistoric civilizations, Roman, Germanic or perhaps Arabic, true origin of the town has its first data in the former chapel of Santa Elena, built in the twelfth or thirteenth century, which stood until the eighteenth century except that one wall appeared painted the venerated image of Santo Cristo del Valle.During the sixteenth century the first permanent settlement of the town arises around this hermitage.The increase in pilgrimages to pray to Christ determined the Crown and the Council of Military Orders to build a new chapel and some dependencies to give shelter to pilgrims.