Rory McIlroy shares the champers after winning the BMW PGA Championship. (Ross Kinnaird / Getty Images)

Rory McIlroy wasn’t kidding about finding a haven from the turmoil in his personal life on the golf course.

McIlroy, who announced early last week that he had broken off his engagement to Caroline Wozniacki shortly after the couple had mailed wedding invitations, shot a 6-under 66 and rallied from a seven-shot deficit on the final day to win the BMW PGA Championship in Virginia Water, England. McIlroy, who finished 14-under at 274, won on the European Tour for the first time since December 2012.

“In the four or so hours inside the ropes each day, I found serenity or a sanctuary, if that’s what you want to call it,” McIlroy said afterward (via The European Tour).

McIlroy beat Shane Lowry by one shot at Wentworth; Thomas Bjorn blew a six-shot lead and finished two back with Luke Donald.

Before the tournament, McIlroy had said that it would be difficult to play during an emotional press conference: “I’m not going to lie. It’s going to be very difficult, but you know, at least when I get inside the ropes, just try and concentrate on the shot at hand. But, yeah, it’s obviously going to be difficult.”