Tom Hayden, the famed 1960s anti-war activist whose name became forever linked with the celebrated Chicago 8 trial, Vietnam War protests and his ex-wife actress Jane Fonda, has died at the age of 76.

He died in Santa Monica, California, on Sunday after a long illness, said his wife, Barbara Williams.

Mr Hayden, once denounced as a traitor by his detractors, overcame his past and won election to the California Assembly and Senate, where he served for almost two decades as a progressive force on such issues as the environment and education. He was the only one of the radical Chicago 8 defendants to win such distinction in the mainstream political world.

He remained an enduring voice against war and spent his later years as a prolific writer and lecturer advocating for reform of America's political institutions.

Los Angeles Mayor Eric Garcetti paid tribute on Twitter, saying: "A political giant and dear friend has passed. Tom Hayden fought harder for what he believed than just about anyone I have known. RIP, Tom."

Mr Hayden wrote or edited 19 books, including Reunion, a memoir of his path to protest and a rumination on the political upheavals of the 1960s.

"Rarely, if ever, in American history has a generation begun with higher ideals and experienced greater trauma than those who lived fully the short time from 1960 to 1968," he wrote.

Mr Hayden was there at the start. In 1960, while a student at the University of Michigan at Ann Arbor, he was involved in the formation of Students for a Democratic Society (SDS), then dedicated to desegregating the South. By 1962, when he began drafting the landmark Port Huron Statement, SDS and Mr Hayden were dedicated to changing the world.

"We are people of this generation, bred in at least modest comfort, housed now in universities, looking uncomfortably at the world we inherit," began the statement which outlined a plan for a revolutionary campus social movement.

Mr Hayden was fond of comparing the student movement that followed to the American Revolution and the Civil War.

In 1968, he helped organise anti-war demonstrations during the Democratic National Convention in Chicago which turned violent and resulted in the notorious Chicago 7 trial. It began as the Chicago 8 but one defendant, Bobby Seale, was denied the lawyer of his choice, was bound and gagged by the judge and ultimately received a separate trial.

After a circus-like trial, Mr Hayden and three others were convicted of crossing state lines to incite riot. The convictions were later overturned, and an official report deemed the violence "a police riot".

The trial became the subject of books, a play andMr Hayden's own reflections in Voices Of The Chicago 8: A Generation On Trial.

Thomas Emmet Hayden was born on December 11 1939 in Royal Oak, Michigan, to middle-class parents. At Michigan University, he took up political causes including the civil rights movement. He wrote fiery editorials for the campus newspaper and contemplated a career in journalism. But upon graduation, he turned down a newspaper job. As he wrote in his memoir: "I didn't want to report on the world; I wanted to change it."

He joined the fledgling Student Non-Violent Co-ordinating Committee (SNCC), went freedom-riding during civil rights protests in the South and was beaten and briefly jailed in Mississippi and Georgia. He married a fellow activist, Sandra "Casey" Cason, and together they witnessed the violence of the battle against segregation.

Yearning for a more influential role, Mr Hayden returned to Ann Arbor, where he was enlisted by the SDS to draft the Port Huron Statement, a call to action he hoped would spread to the rest of the country.

"I didn't want to go from beating to beating, jail to jail," he wrote. "There was an entire generation to arouse, primarily about civil rights but also about the larger issues."

In 1965, he made his first visit to North Vietnam with an unauthorised delegation. He found out later that his movements were being tracked and recorded by the FBI, as they would be from then on.

In 1967, he returned to Hanoi with another group and was asked by North Vietnamese leaders to take three prisoners of war back to the United States. With the prisoners suffering medical problems, the US State Department thanked Mr Hayden for his humanitarian action.

Firmly committed to the anti-war movement, Mr Hayden participated in sit-ins at Columbia University, then began travelling the country to promote a rally in Chicago for the DNC.

In the interim, a single event galvanised him - the 1968 assassination of his friend, Senator Robert F Kennedy, in Los Angeles.

"I went from Robert Kennedy's coffin into a very bleak and bitter political view," he told the Associated Press in 1988. "I think it confirmed for me that there was no future and brought out a lurking belief that this was a really violent country and that I was headed into apocalyptic times."

Police assaults on student demonstrators in Chicago seemed to confirm his belief. But he later said he was wrong.

"In 1968, I thought it was reasonable to anticipate a police state," he recalled. "But in 1972, the people who were running the Democratic Party four years before were out and the people who were in the streets were in. In the next year, the people who wanted to put me in jail began the road to jail themselves with Watergate.

"The radical pressure caused the reforms. But it's fair to say the system reformed itself."

In 1971, Mr Hayden met Jane Fonda, a latecomer to the protest movement.

"She came from the orbits of fame, power and success. A popular actress and the daughter of Henry Fonda, she burst like a dislocated star on to the movement scene ... but came only slowly and haltingly into my life," he wrote.

After he heard her give an eloquent anti-war speech in 1972, Mr Hayden said they connected and became a couple. He was divorced from Ms Cason and had been through other romances. Fonda was divorced from director Roger Vadim and had a daughter, Vanessa Vadim.

"I was 32, she 34, both of us were starting over," Mr Hayden wrote. "The passion of our common involvement no doubt caused our involvement in passion for each other."

He acknowledged ruefully that their marriage in 1973 may have appeared to some as "a remake of 'Beauty and the Beast'."

He was a rumpled, long-haired activist who still cast himself as an outsider. She was a glamorous, world-famous film star and heiress to a Hollywood dynasty. They were married for 17 years and had a son, Troy.

Both Mr Hayden and Fonda were demonised by the political right after she visited Vietnam and was photographed on a North Vietnamese anti-aircraft gun. It took many decades to minimise her "Hanoi Jane" moniker.

With heavy financial support from Fonda, Mr Hayden plunged into California politics in the late 1970s. He formed the Campaign for Economic Democracy and was elected to the Assembly in 1982.

In 1992, he won election to the state Senate advocating for environmental and educational issues. However, his radical past disturbed conservatives and interfered with his legislative initiatives.

By then, he and Fonda were divorced, their relationship having withered as she returned to acting and built an exercise empire. Both of them strayed into affairs with others.

Fonda later married and divorced billionaire Ted Turner. Mr Hayden married actress Barbara Williams and they had a son, Liam.

In 1994, Mr Hayden was defeated in a run for the state governorship, and he lost a bid to become mayor of Los Angeles.

After leaving public office, he wrote and travelled extensively, lecturing, teaching and speaking out against the wars in Iraq and Afghanistan. He was also an advocate for animals, and in 2012 he lobbied Governor Jerry Brown to preserve a piece of legislation known as Hayden's Law, which he had authored to protect shelter animals from premature euthanasia.

Mr Hayden acknowledged at the end of his memoir that his time as a counter-culture rebel had been the most exciting and fulfilling of his life.

"Whatever the future holds and as satisfying as my life is today," he wrote, "I miss the '60s and I always will."