From the 1990s onwards, Las Palmas played mainly in the Segunda División, but also spent six years in Segunda División B – the new third level created in 1977 – and, from 2000 to 2002, competed in the top flight. On 3 October 2001 the side managed a 4–2 home win against Real Madrid, with youth product Rubén Castro scoring two goals for the hosts, but the season ended nonetheless in relegation. On 22 December 2001, Las Palmas played its 1,000th game in La Liga. In the 2009–10 season in Segunda División the club finished 17th, just one point away from being relegated to Segunda División B. On 21 June 2015, Las Palmas was promoted back to La Liga after defeating Real Zaragoza on the away goals rule.