The club narrowly avoided relegation during the 2005–06 and 2006–07 seasons, the latter being the worst in the club's history. In the Copa del Rey, they reached their first final in 24 years, losing 4–1 to Barcelona.