Prince Harry had a surprise in store for the Invictus Games on Friday — former president Barack Obama and former vice president Joe Biden!

Obama and Harry walked into the arena to watch a game of wheelchair basketball on Friday evening, the last day of the Invictus Games before tomorrow’s closing ceremonies.

Get push notifications with news, features and more.

Spectators leapt to their feet to catch a glimpse of the two men, snapping photos on their phones. After making their entrance, Harry and Obama walked over to greet and shake hands with the athletes who would be playing in the game. When they sat down, they were joined by Biden and his wife, Dr. Jill Biden. Former First Lady Michelle Obama was not in attendance.

Image zoom

Image zoom

In their seats, all four chatted while stopping to pose for photos with fellow Invictus Games attendees in the stands.

Obama shared photos of the day on Twitter Friday night, writing, “Proud to cheer on Team USA at the Invictus Games today with my friend Joe. You represent the best of our country.”

The former U.S. president and Michelle became friends with Harry as well as Prince William and Princess Kate throughout their time in office. Harry met with Michelle on a number of occasions, including at the previous Invictus Games in Orlando, Florida.

Last April, the Obamas stopped by Kensington Palace for dinner, where they had a chance to meet Harry’s nephew, Prince George (who made waves on the internet for the dapper personalized bathrobe he wore for the occasion).

RELATED VIDEO: Will Prince Harry See ‘Suits’ Star Girlfriend Meghan Markle Before the Holiday Season?

President Donald Trump did not attend the event in Toronto, but First Lady Melania Trump did. She met with Harry on Sept. 23 in Toronto, where he thanked her for attending the games.