The name of the village comes from the Arabic word القصر "al qaçr" . It means fort or castle. It was renamed as Alcazar in Spanish. The castle became the main defense point of the nearby city of Barbastro.