La Sotonera is a municipality located in the province of Huesca, Aragon, Spain. It is situated between Huesca and Ayerbe in the Hoya de Huesca. According to 2018 (INE) data, the municipality has a population of 894 inhabitants.