Huesca (wāˈskä) [key], town (1990 pop. 42,805), capital of Huesca prov., NE Spain, in Aragón, at the foot of the Pyrenees. It is a farm center. In this ancient town Sertorius founded a school in 77 B.C. After Peter I of Aragón liberated it (1096) from the Moors, Huesca was the residence of the kings of Aragón until 1118. A university, later discontinued, was founded there in 1354. The 13th-century Gothic cathedral, the early Romanesque Church of San Pedro, and the royal palace of the Aragonese monarchs are notable landmarks.