Barcelona beat Deportivo A Coruna 5-1 and keep a five-point lead over Atletico Madrid at the top of La Liga.
Raphinha scored in the 49th, 82nd and 90th minutes to complete a second-half hat trick.
Lamine Yamal opened the scoring and Aubameyang equalised before Dani Olmo headed Barcelona back in front in the 20th minute.
Real Madrid dropped to third after a surprise 2-1 home defeat to Deportivo Alaves.
Jude Bellingham was sent off late in the match after receiving a second yellow card for diving.
On Saturday, Atletico Madrid beat Elche 3-2 and kept up the pressure on Barcelona.
Barcelona thrash Deportivo 5-1, Raphinha hat-trick; Real Madrid slip to third