British chart-topper Ed was pictured on the set Down Under, shooting scenes at the show's Palm Beach location in Sydney.
Ed was seen on location with H&A favourite, Emily Symons, who plays Marilyn Chambers in the soap.
A rep confirmed Ed will appear as himself in the episode, which is due to air later this year. No other details have been released.
The soap shared a photo of Ed posing for a pic in the fictional town of Summer Bay.
Home and Away added on their Facebook account: "Look who's been spotted in Summer Bay! Yep, your eyes do not deceive you, world renowned singer/songwriter, Ed Sheeran, recently visited the Palm Beach and Eveleigh sets of Channel 5's Home and Away to film scenes for an upcoming episode.
"He will appear as himself in the series, but storyline details about what brings Ed to Summer Bay are being kept under wraps for now. Ed's episode will screen later this year."
We're so intrigued!
'Thinking Out Loud' singer Ed is currently in Australia on tour. Last night he wrapped up a performance at Sydney, and he is also expected to perform in Melbourne, Adelaide and Perth.
Home and Away airs weekdays on Channel 5 at 6pm.
For exclusive competitions and amazing prizes visit Reveal's Facebook page NOW!