Real Madrid defeated Barcelona in the 250th El Clasico to take control of La Liga and hand Barcelona their first league defeat of the season.
Marc-Andre ter Stegen saved Vinicius Jr’s shot into his path, allowing Karim Benzema to score Real’s first goal.
Federico Valverde’s 20-yard drive before halftime doubled the champions’ lead.
Ferran Torres equalized after Robert Lewandowski’s flick-on, but Rodrygo settled the score with a penalty.
The rivals began the day with seven wins and a draw from their first eight games, but Real now leads by three points as they remain unbeaten.
Xavi suffered his first away La Liga defeat as Barcelona manager in nearly a year.