Written in the incendiary year of 1968, the song reflected the paradigm shift the world was undergoing, as signalled by the evolution in pop music from the songs of Sinatra to rock & roll. It was the start of a new era, and Sinatra belonged very much to the previous one. He told Anka that rock & roll made him feel irrelevant, and felt it was time to call it quits.
https://www.paulanka.com/news/behind-the-song-my-way-by-paul-anka