The victory lifted Barcelona back to the top of the Spanish league with 21 points, while Madrid were left languishing in ninth place with 14 points.