He spent his last few months out of the public eye in his adopted home state of Arizona, reflecting on the meaning of his life and accepting visits from a stream of friends and old political combatants.
In a memoir published in May, McCain wrote that he hated to leave the world, but had no complaints.
“It’s been quite a ride. I’ve known great passions, seen amazing wonders, fought in a war, and helped make peace,” McCain wrote. “I’ve lived very well and I’ve been deprived of all comforts. I’ve been as lonely as a person can be and I’ve enjoyed the company of heroes. I’ve suffered the deepest despair and experienced the highest exultation.
“I made a small place for myself in the story of America and the history of my times.”
McCain had not been in Washington since December, leaving a vacuum in the corridors of the Senate and the television news studios he roamed for decades.
In recent months, he was not completely quiet, however, blasting President Donald Trump in a series of tweets and statements that showed that while he was ailing he had lost none of his appetite for the political fight.
The Arizona Senator repeatedly made clear that he saw Trump and his America First ideology as a departure from the values and traditions of global leadership that he saw epitomized in the United States.
McCain had been planning his funeral services over the last year and his family made clear that Trump is not invited, a position that has not changed, two family friends said Saturday.
Former rivals and Presidents Barack Obama and George W. Bush were asked to give eulogies, people close to both former presidents and a source close to the senator told CNN earlier this year.
McCain’s two losing presidential campaigns meant he fell short of the ultimate political prize, one his story once seemed to promise after he came home from Vietnam and caught the political bug. In the end, he became a scourge of presidents rather than President himself.