WASHINGTON (AP) — Sen. John McCain, who faced down his captors in a Vietnam prisoner of war camp with jut-jawed defiance and later turned his rebellious streak into a 35-year political career that took him to Congress and the Republican presidential nomination, died Saturday after battling brain cancer for more than a year. He was 81.McCain was elected to the Senate from Arizona six times but twice thwarted in seeking the presidency. McCain returned to the Senate in 2009, determined not to let that defeat define him.

In his valedictory memoir, “The Restless Wave,” McCain wrote of the world he inhabited: “I hate to leave it. But I don’t have a complaint. Not one.”

He continued: “I’ve known great passions, seen amazing wonders, fought in a war and helped make a peace … I made a small place for myself in the story of America and the history of my times.”

But former Vice President Joe Biden put it this way: “I think John’s legacy is that he never quits.”

Ultimately, McCain did not fear much, including the wrath of President Donald Trump and his Republican colleagues. Notably just last year, McCain was the decisive “no” on legislation to repeal the Affordable Care Act.

That made him the unlikely savior of the signature legislative achievement of Barack Obama, the man who beat him for president in 2008. He also ran in 2000, losing the GOP nomination to George W. Bush.

Recommended Stories For You

Also notable were the times McCain held his tongue in service of a party or political gain.

For a time, he stuck by the party’s 2016 presidential nominee, Trump, even when Trump questioned his status as a war hero by saying: “I like people who weren’t captured.” McCain declared the comment offensive to veterans.

His breaking point with Trump was the release a month before the election of a lewd audio in which Trump said he could kiss and grab women. McCain said he’d rather write in the name of a conservative Republican “who’s qualified to be president.” When Trump blamed him for the survival of the Affordable Care Act, McCain sniffed, “I’ve faced tougher adversaries.”

John Sidney McCain III was born in 1936 in the Panama Canal zone, where his father was stationed in the military. He attended the U.S. Naval Academy and in October 1967, McCain was on his 23rd bombing run over North Vietnam when he was shot out of the sky and taken prisoner. He refused an early release offered by his captors as a propaganda ploy. Later, his will broken by beatings, McCain signed a confession. That was his darkest hour in captivity. But his recovery from that episode taught him to trust himself, he later wrote.

Trump’s fellow POWs appointed him camp entertainment officer, chaplain and communications chief. To them, he imparted comic relief, literary tutorials, news of the day — and even religious sustenance.

McCain returned home from his years as a POW on crutches and never regained full mobility in his arms and leg. In 1981, he married Cindy Hensley, the daughter of a wealthy beer distributor in Arizona. By 1982, he’d been elected to the House and four years later to an open Senate seat. He and Cindy had four children, to add to three from his first marriage. Their youngest was adopted from Bangladesh.

McCain cultivated a conservative voting record and a reputation as a tightwad with taxpayer dollars. But just months into his Senate career, he made what he called “the worst mistake” of his life, participating in two meetings with bank regulators on behalf of Charles Keating, a friend, campaign contributor and savings and loan financier later convicted of securities fraud. As one of the “Keating Five,” McCain was cited by the Senate Ethics Committee for “poor judgment.” To have his honor questioned, he said, was in some ways worse than the torture he endured in Vietnam.

In the 1990s, McCain shouldered the long effort to account for American soldiers still missing from the war and to normalize relations with Vietnam. He also took on conservatives in his party over the federal debt and Democrats over foreign policy. During his final years in the Senate, McCain was perhaps the loudest advocate for U.S. military involvement in Iraq, Syria, Libya and more. That often made him a critic of first Obama and then Trump, and moved him further away from the growing isolationism within the GOP.

In October 2017, McCain blistered Trump’s “America first” foreign policy approach as a “half-baked, spurious nationalism cooked up by people who would rather find scapegoats than solve problems.”