Kyle Edmund's impressive run at the Madrid Open came to an angry end as he was beaten by Canadian teenager Denis Shapovalov in their quarter-final clash.

Edmund, who had conquered Novak Djokovic and David Goffin in the previous rounds, lost his cool towards the end of a tight second set when he stopped after a spectator called out, and Shapovalov proceeded to serve an ace.

The incident temporarily affected Edmund, who had to subsequently save a match point to force a deciding set, in which he eventually fell to exit the tournament 7-5, 6-7 (6/8), 6-4.

Edmund had acquitted himself against a player rated as one of the game's rising stars, swapping breaks early in the first set before a sloppy final service game saw the British No.1 fall behind.

A tight second set burst into life in the 10th game after the incident which saw Edmund engage in a furious exchange with the umpire over a point he considered could have cost him the match.

But Edmund showed admirable poise to edge through the eventual second set tie-break before Shapovalov grabbed what turned out to be the crucial break in the third game of the decider.

Nevertheless the 23-year-old Edmund gave his all in what was his first Masters 1000 quarter-final, and he can expect to be rewarded with a place in the top 20 for the first time when the new rankings appear on Monday.

Shapovalov will face world No.3 Alexander Zverev, who repelled big-serving American John Isner 6-4, 7-5.

Rafael Nadal, meanwhile, refused to make excuses after his record-breaking winning streak came to an end at the hands of Dominic Thiem in the quarter-finals.

Nadal will also lose his world No.1 spot after a 7-5, 6-3 defeat to the Austrian which brings to an end his 21-match unbeaten run on clay – his favourite surface.

On Thursday Nadal was celebrating booking his place in the last eight with a straight-sets win over Diego Schwartzman, which saw him surpass John McEnroe's record of 49 straight-set wins on a single surface.

But Nadal could not maintain his form and was comfortably beaten by the world No.7, who broke his opponent's serve five times in the two-hour match.

Nadal told atptour.com: "I am playing against one of the best players in the world and we were playing in special conditions – the ball flies more here and I was not under control of the point.

"I tried to come back, but I wasn't good enough today. I think I've placed myself in a good position. I still have two good weeks on clay then I'll keep moving forward."

Nadal relinquished his world No.1 position to Roger Federer, who is sitting out the clay court season, but the Spaniard will retain it if he wins the Rome Masters next week.

In the semi-finals Thiem will face South African sixth seed Kevin Anderson, who proved too strong for Serbian qualifier Dusan Lajovic, winning 7-6 (7/3), 3-6, 6-3 in just over two hours.

In the women's tournament, Petra Kvitova extended her winning streak to 10 matches as she beat Czech compatriot Karolina Pliskova in straight sets to book her place in the final.

Fresh from victory at the Prague Open last week, Kvitova twice battled back from a break down in the opening set to eventually claim a 7-6 (7/4), 6-3 win in one hour and 43 minutes.

Pliskova had made a storming start, breaking her opponent in the opening game of the match and later establishing a second break advantage before being forced into a tie-break.

There the sixth seed capitulated, serving successive double points to hand the first set to Kvitova,

the former Wimbledon champion was in no mood to give up her advantage, breaking Pliskova immediately at the start of the second set and again when Pliskova served to stay in the match at 5-3 to wrap up victory.

In the final Kvitova will face unseeded Dutch player Kiki Bertens, who continued her superb form in the tournament with a 6-2, 6-2 win over Caroline Garcia.

Bertens, who beat world No.2 Caroline Wozniacki in an earlier round, dominated proceedings throughout to book her place in the biggest final of her career.

Bertens told wtatour.come: "I'm in the final now, and I have a chance tomorrow but it's going to be really, really tough.

"Right now I'm just really happy about my performances through the whole week. I'm just trying to go there tomorrow and do the same, and we will see."