Ben Treuhaft, 66, first set up on the sands of Portobello, Edinburgh, after his wife kicked him out of their home in March.
The professional piano tuner lived on the beach throughout the summer until Edinburgh City Council ruled his tent was in breach of the city's park and management rules.
The father of two has given in to a final ruling which required him to move within 24 hours and has put his piano into storage - but has vowed to find a new home. He said: "It's taken five months to get me off Portobello, so I hope I can stay at the new spot for another five months. I'll probably still be there by Hogmanay."
A council spokeswoman said: "We are pleased that this matter has now been concluded."