Two Australian hockey players, Jayde Taylor and Brooke Peris, had a rare experience during the ongoing Commonwealth Games in Glasgow when the Queen of England photobombed their selfie.

The hilarious moment happened when Her Majesty was meeting the Australian hockey captain Madonna Blyth on the pitch. Taking the opportunity, Taylor and Peris decided to take a selfie in front of the British monarch.

But to their surprise, the Queen looked towards the camera with a broad smile for the royal selfie, which has gone viral on social media.

Taylor shared the picture immediately on Twitter and it attracted media attention worldwide.

The picture, retweeted almost 11,000 times, was taken after Australia's 4-0 victory over Malaysia.

"We were warming down on the second pitch after our game and the Queen came out to meet Donny [Madonna Blyth, Australian women's hockey captain]," Taylor told the Sydney Morning Herald.

"The security guard led us all round and we got to meet her. She asked us a bit about the pitch, how we were going and told us to enjoy our time here. She was lovely, really, really lovely.

"Brooke and I planned it so that when she came out the door she would be behind us.

"And then she came out and smiled at the camera. We were in the right spot at the right time," she added.