Rodrygo saw red for Real Madrid Castilla in their 2-0 win over San Sebastian de los Reyes.
As a result, he will be suspended for Sunday's Clasico against Barcelona.
The Brazilian youngster scored a fine solo goal, dribbling from the halfway line before slotting the ball beyond Irureta.
Yet Rodrygo was given his marching orders moments later, after he decided to celebrate in the goalkeeper's face.
The referee spotted the youngster's actions and brandished a second yellow card which will prevent him from playing in the upcoming Clasico.