Girona are within touching distance of the top of the Segunda Division after defeating Barcelona B 4-2 away from home.
The home side began on the front foot and took an early lead through Sandro Ramirez, but things started to unravel for them at the end of the first period.
Girona levelled things up two minutes before the break as Jaime Mata found the net, and they seized control of the match early in the second half.
They hit Barca B with two goals in quick succession, with Eloi Amagat putting the away side in front before Francisco Sandaza added a third to give the hosts a mountain to climb.
Barca's reserves threatened to stage a fightback in the closing stages, but Adama Traore's goal 10 minutes from time counted for little in the end.
Girona made the game safe in the final minute through Miguel Angel Cifu's strike, keeping up the pressure on Real Betis in the title race in the process.