Gavilán was gradually breaking into the main squad after two loans (CD Tenerife – second level – and Getafe CF), even though he had to battle for that position with the gifted (although tremendously injury-prone) Vicente. However, after the arrival of new boss Ronald Koeman in November 2007, he was deemed surplus to requirements and was loaned again to Getafe, until the end of the season; the previous campaign, he suffered a serious knee ligament injury which kept him out of action for a period of six months.[2]
In his second spell with the Madrid outskirts side, Gavilán appeared prominently during half a season, netting in a 2–1 home win over Racing de Santander on 16 March 2008.[3] He was also part of the team's quarter-final run in the UEFA Cup, playing in three matches, all as a starter.
Getafe
On 15 July 2008, Gavilán signed a four-year deal with Getafe, thus losing all ties to Valencia.[4] During his first full season he was an everpresent midfield fixture and, on 12 April 2009, he scored the game's only goal in an important win at Sevilla FC.[5]
In 2009–10, Gavilán featured in 27 league games (no goals) as Getafe qualified for the second time ever for Europe, after finishing in sixth position. On 6 March 2011, in the last minutes of the first half of a 0–2 away defeat against Sporting de Gijón, he suffered the same injury to his knee, being sidelined for the rest of the campaign.[6]
Levante
Free agent Gavilán joined fellow top division club Levante UD in June 2014, signing a two-year contract with an option to extend for a further year.[7] On 30 January 2015, after appearing in only six competitive matches, he severed his link.[8]
On 6 July 2018, 33-year-old Gavilán returned to Spain after agreeing to a two-year contract with AD Alcorcón in the second division.[11] On 9 July of the following year, after appearing in only eight league matches, he terminated his contract.[12]