Endrick became Real Madrid’s youngest Champions League goalscorer while Kylian Mbappe also netted for the holders in a hard-fought home win over Stuttgart.
At 18 years and 58 days, the Brazilian broke the record set by club legend Raul in 1995, who scored against Ferencvaros aged 18 years and 113 days.
The striker, who joined the club this summer from Palmeiras, had already become the youngest player to score on his La Liga debut for Madrid in the 21st Century after coming off the bench against Real Valladolid.
After replacing Jude Bellingham in the 80th minute at the Bernabeu Stadium, Endrick wrapped up the points with the last kick of the game.