Our US tour ended in dramatic fashion with four goals, two red cards and - ultimately - a penalty shootout defeat in Washington DC.
We bossed the first half and went ahead when Alex Lacazette's penalty went in via both posts after Nacho was sent off for handling an effort on goal from our France striker.
Pierre-Emerick Aubameyang doubled our lead, latching onto Lacazette's pass to go past goalkeeper Keylor Navas and fire a shot in off Sergio Ramos.
A fourth win from four tour games looked on the cards but the match turned when Sokratis was sent off for two yellow cards in the space of two minutes. Both decisions looked harsh.
Gareth Bale reduced the deficit for Real Madrid, prodding in from close range after the ball squirmed away from Emi Martinez's grasp under pressure from Marco Asensio.
It was Asensio himself who equalised, beating Martinez with a first-time effort from Marcelo's pass.
Calum Chambers had a shot kicked off the line and Eddie Nketiah missed a couple of late chances for us, while Martinez kept Madrid at bay with two good saves.
And so to penalties.
Reiss Nelson scored, Martinez saved from Bale, Thibaut Courtois denied Granit Xhaka and Isco made it 1-1. Bukayo Saka and Raphael Varane scored, but Nacho Monreal hit the post.
Junior scored to give Madrid the advantage, and Robbie Burton blazed over the bar to confirm our defeat.
HOW IT HAPPENED
Get the full story of a thrilling game against Madrid with our play-by-play updates.
FOUR THINGS WE NOTICED
Sore-kratis, Laca on the spot, unflappable Joe and a very brave man
We return to London and head to Emirates Stadium for our next pre-season fixture - an Emirates Cup game against French side Lyon.
Copyright 2023 The Arsenal Football Club plc. Permission to use quotations from this article is granted subject to appropriate credit being given to www.arsenal.com as the source.