Andy Murray faced Roger Federer in a charity event in Glasgow on Tuesday night.
The Andy Murray Live event - raising funds for UNICEF and Sunny-sid3up - will also feature a doubles match with Murray and his brother Jamie taking on Tim Henman and Mansour Bahrami.
The 30-year-old Brit, who is now ranked 16th in the world, has not played a competitive tennis match since aggravating a hip injury at Wimbledon.
Federer, who recently won the Swiss Indoors, won the first set 6-3 before Murray levelled up by taking the second set on a tie-break.
The British star was interviewed at the end of the first set and told fans that he was "so happy to be back on court."
"It was a bit better than expected," said Murray. "I was very nervous beforehand. I didn't know exactly how I was going to feel but I did OK. Roger was a hit lucky I thought in the big points but it was good.
"Im just so happy to be back on the court playing in front of everyone. It means a lot, I've really missed it. Hopefully I'll be back at the beginning of next year."
Federer and Murray's brilliant Twitter exchange
They've been rivals for many years but it's clear that Federer and Murray have a strong friendship.
Murray sent Federer some of his grandma's homemade shortbread and the 36-year-old shared a photo on Twitter.
Murray, who has been off Twitter since February, finally ended his nine month social media hiatus with a brilliant response.
A deep fried Mars bars is a notorious Scottish snack - it is probably one of the most unhealthy things a human being can put into their body.
When asked whether he would be fit enough to compete at the Brisbane International, Murray replied: "I hope I’m there. Things have been going pretty well so far in the rehab but you just never know.
"I’ve been training for a few weeks now, some days I’ve felt great, others not so good. But I’m getting there. I’ll come back when I’m ready, like Roger said when I’m 100% fit.
"I made probably a bit of a mistake trying to get ready for the US Open but it was the last major of the year and I wanted to give it a go. Now it’s time to give my body the rest and recovery it needs. I’ll come back when I’m ready."
Do YOU want to write for GiveMeSport? Get started today by signing-up and submitting an article HERE: https://www.givemesport.com/writeforgms