Ansu Fati snatched an extra-time winner for Barcelona in a thrilling 4-3 victory over third-tier Intercity in the Spanish Cup round of 32 on Wednesday.
The minnows from Alicante nearly embarrassed Barcelona with former La Masia youth player Oriol Soldevila scoring a superb hat-trick to force extra-time, before Fati's deflected strike settled the tie.
Dembele executed a fine chip to put Barcelona back in front when he was sent through in the 66th minute.
Intercity levelled again when Soldevila produced a fine header to beat Inaki Pena but Raphinha stroked home Jordi Alba's low cross to restore Barcelona's lead.
However Soldevila completed a remarkable hat-trick against his former side after a Marcos Alonso slip-up to force extra-time.
Substitute Fati then fired Barcelona ahead with a deflected strike which looped home in the 104th minute, and it proved decisive.