REAL Madrid needed a late winner from Marco Asensio (pictured, AFP) and VAR’s debut in the Champions League to beat a spirited Ajax 2-1 in the first leg of the last 16 on Wednesday.

Ajax have not beaten Madrid in 24 years and thought they were on their way at the Johan Cruyff Arena when Nicolas Tagliafico headed home after a Thibaut Courtois error.

But referee Damir Skomina judged Dusan Tadic to be offside upon review and Madrid showed no pity on their youthful opponents, Karim Benzema and Asensio scoring two precious away goals in the second half.

Hakim Ziyech’s equaliser at least keeps Ajax in touch heading into the second leg at the Santiago Bernabeu but Asensio’s 87th-minute winner was a sucker-punch in a match the Dutch team had largely dominated.

VAR has been introduced to the Champions League for the first time in this year’s knock-out stages and leaflets were distributed to the media before kick-off, one of the points explaining how reviews should only be for “clear and obvious mistakes”.

UEFA later tweeted Ajax’s goal was “correctly overturned for offside” but Tadic’s intervention on Courtois was minimal and it seemed generous to deem it enough for a call to be reversed.

Gareth Bale was reinstated to the Madrid starting line-up but there was no place for Marcelo, who missed his first Champions League knock-out game in four years.

Ajax fans had put on an impressive display of fireworks late on Tuesday night outside the Spanish team’s hotel and perhaps it paid off because a drowsy Madrid were run ragged in the first half.

The best opportunity fell to the excellent Donny van de Beek, after the ball was shifted along the line like a rugby move until the midfielder was left spare six yards out. Courtois saved with his legs.

Hero one minute, villain the next, Courtois then fumbled De Ligt’s header from the corner and Tagliafico headed in. There was no protest from Courtois but Skomina pointed to his earpiece. Tadic, who had brushed past the Belgian as the header looped in, was ruled offside.

The crowd jeered at half-time and Benzema compounded their misery soon after. It was a goal to sum up Madrid’s resurgence in recent weeks as Luka Modric flicked a ball for Vinicius Junior to race after. He tore past one, jinked inside two more and teed up Benzema, who found the top corner.

Ajax refused to fade. David Neres and Tadic both went close before Neres skipped free down the left and crossed for Ziyech to slide in the equaliser. Madrid wanted a free-kick for a foul on Lucas Vazquez in the build-up but this time the goal stood.

A draw might have appeased the home fans but they were denied even that as a slick move through midfield freed Dani Carvajal down the right. His curving cross found Asensio, who could not miss.