Fede Valverde broke the deadlock with a deflected free-kick in the 50th minute. Late goals from Brahim Diaz and debutant Endrick sealed the win for Madrid.
Despite a slow start, Madrid improved after the break to secure their first league win of the season. Mbappe, who joined Madrid this summer, missed several opportunities and has yet to find the net in La Liga.