The match, arranged to help combat racism after various incidents of abuse aimed at Real Madrid and Brazil winger Vinicius Junior in Spain, proved a pulsating battle between two of football's heavyweight nations.
Brazil snatched a late leveller to share an entertaining and occasionally heated 3-3 friendly draw with Spain on Tuesday.
The Spanish and Brazilian football federations presented their plan on Tuesday for a friendly match at the Santiago Bernabeu in March 2024 to combat racism, after global outrage at the abuse of Real Madrid's Vinicius Junior.