LONDON — Canada's Milos Raonic advanced to the quarter-finals at Wimbledon on Monday, coming back from two sets down to beat Belgian David Goffin 4-6, 3-6, 6-4, 6-4, 6-4.

The sixth-seeded Raonic recovered confidently after struggling early in the match and won after trailing by two sets for the first time in his career.

Raonic went ahead in the match for the first time when picked up a key break in the fifth game of the fifth set to go up 3-2. He held serve the rest of the way and put the 11th-seeded Belgian away on his first match-point opportunity.

Goffin had trouble returning Raonic's serve, and the Canadian clinched the match with a confident forehand.

Once again, Raonic's dangerous serve was on display in the match that took three hours two minutes to complete. He fired 22 aces in the match, giving him 101 through four rounds at the All England Club. But unforced errors got Raonic in trouble early and continued to plague him throughout the match. He finished with 44.

Raonic, from Thornhill, Ont., will next face 28th seed Sam Querry of the United States, who downed France's Nicolas Mahut 6-4, 7-6 (5), 6-4 in the fourth round to reach his first Grand Slam quarter-final.

Raonic and Querry have met three times, with the American holding a 2-1 edge. Querry also advanced past Raonic in a walkover at the 2013 Miami Masters.

Raonic made the semifinals at Wimbedon in 2014 before losing to Roger Federer. The winner of the match between Raonic and Querry will face either third-seed Federer on ninth-seed Marin Cilic in the 2016 semifinals.

In men's doubles third-round action, Toronto's Adil Shamasdin teamed with Britain's Jonathan Marray to defeat Marcel Granollers of Spain and Pablo Cuevas of Uruguay 6-3, 4-6, 6-4, 3-6, 14-12.

Eighth seeds Vasek Pospisil of Vancouver and American Jack Sock won their second-round match 6-4, 6-4 over Australians Lleyton Hewitt and Jordan Thompson.

The French team of Julien Benneteau and Edouard Roger-Vasselin defeated the ninth-seeded pair of Toronto's Daniel Nestor and Britain's Dominic Inglot 7-6 (0), 6-4.

In women's doubles, Anabel Medina Garrigues and Arantxa Parra Santonja of Spain beat Ottawa's Gabriela Dabrowski and Spain's Maria Jose Martinez Sanchez 4-6, 7-6 (4), 6-3 in a second-round match.