Born in the city of Huesca in the autonomous community of Aragon, Huesca Club de Fútbol was formed in 1912 and played its first official match in 1913. The club played in the Spanish Second Division for most of its history, but in 2007, it was promoted to the First Division after finishing as runners-up in the 2006–07 La Liga. Huesca has spent only two seasons in the top flight, but it has consistently been among the best teams in the country. The club has never won the Liga title, but it has reached the final four times and has won the Copa del Rey twice. In 2014, Huesca reached the UEFA Europa League knockout stage for the first time, but it was eliminated by Odense BK.