Peter Fonda, the son of a Hollywood legend who became a movie star in his own right after writing and starring in counter-culture classics like Easy Rider, has died.

His family said in a statement that Fonda died Friday morning at his home in Los Angeles. He was 79.

The official cause of death was respiratory failure due to lung cancer.

"I am very sad," his sister Jane Fonda said in a statement. "He was my sweet-hearted baby brother. The talker of the family. I have had beautiful alone time with him these last days. He went out laughing."

Born into Hollywood royalty as Henry Fonda's only son, Peter Fonda carved his own path with his non-conformist tendencies and earned an Oscar nomination for co-writing the psychedelic 1969 road trip movie Easy Rider.

He would never win that golden statuette, but would later be nominated for his leading performance as a Vietnam veteran and widowed beekeeper in Ulee's Gold.

Fonda was born in New York in 1940 to parents whose personas were the very opposite of the rebellious images their kids would cultivate. Father Henry Fonda was already a Hollywood giant, known for playing straight-shooting cowboys and soldiers. Mother Frances Ford Seymour was a Canadian-born U.S. socialite.

He was only 10 when his mother died by suicide. She had a nervous breakdown after learning of an affair by her husband and was confined to a hospital.

Fonda went to private schools in Massachusetts and Connecticut as a child, moving on to the University of Nebraska in his father's home state, joining the same acting group — the Omaha Community Playhouse — where Henry Fonda got his start. He then returned to New York and joined the Cecilwood Theatre, getting small roles on Broadway and guest parts on television shows including Naked City and Wagon Train.

Fonda had an estranged relationship with his father throughout most of his life, but said they grew closer over the years before Henry Fonda died in 1982.

Pop culture icon

Although Peter never achieved the status of his father or even his older sister, the impact of Easy Rider, which just celebrated its 50th anniversary, was enough to cement his place in popular culture.

Fonda collaborated with another struggling young actor, Dennis Hopper, on the script about two weed-smoking, drug-slinging bikers on a trip through the U.S. Southwest as they make their way to New Orleans for Mardi Gras.

On the way, Fonda and Hopper befriend a drunken young lawyer — Jack Nicholson in a breakout role — but raise the dander of Southern rednecks and are murdered before they can return home.

Fonda's character Wyatt wore a stars-and-stripes helmet and rode a motorcycle called Captain America, repurposing traditional images for the counter-culture.

Actress Illeana Douglas tweeted her condolences Friday.

EASY RIDER depicted the rise of hippie culture, condemned the establishment, and celebrated freedom. Peter Fonda embodied those values and instilled them in a generation. Independent cinema begins with EASY RIDER. Period. <a href="https://twitter.com/hashtag/RIPCaptainAmerica?src=hash&ref_src=twsrc%5Etfw">#RIPCaptainAmerica</a> <a href="https://t.co/HkprgavIM2">pic.twitter.com/HkprgavIM2</a> —@Illeanarama

Fonda had played bikers before Easy Rider. In the 1966 Roger Corman-directed Wild Angels, in which he plays Heavenly Blues, leader of a band of Hells Angels, Fonda delivers a speech that could've served as both a personal mantra and a manifesto for the youth of the '60s.

"We wanna be free!" Fonda tells a preacher in the film. "We wanna be free to do what we wanna do. We wanna be free to ride. We wanna be free to ride our machines without being hassled by the man! And we wanna get loaded!"

Fonda produced Easy Rider and Hopper directed it for a meagre $380,000 US. It grossed $40 million US worldwide, a substantial sum for its time.

The film was a hit at Cannes, netted a best screenplay Oscar nomination for Fonda, Hopper and Terry Southern, and has since been listed on the American Film Institute's ranking of the top 100 American films. The establishment gave its official blessing in 1998 when Easy Rider was included in the United States National Film Registry for being "culturally, historically, or esthetically significant."

In 1969, he told The Associated Press that, "As for my generation, it was time they started doing their own speaking. There has been too much of the 'silent majority' — at both ends of the generation gap."

Jack Nicholson, left, and Fonda laugh after their wins at the 55th Annual Golden Globe Awards in 1998. Fonda won for best performance by an actor in a motion picture-drama for the movie Ulee's Gold. Nicholson won for best acting in a comedy in the film As Good As It Gets. (Reuters)

He did reflect later in a 2015 interview with the Hollywood Reporter that it may have impacted his career prospects.

"It certainly put a nail in the coffin of 'the next Dean Jones at Disney,"' he said.

Fonda's output may have been prolific, but was not always well regarded, which he was acutely aware of. But he said that Ulee's Gold, which came out in 1997, was the "most fun" he'd had making a movie. He wore the same wire-rimmed glasses his father wore in On Golden Pond, although he said beyond that he was not channeling Henry Fonda. He lost out on the Oscar to Nicholson, who won for As Good as It Gets.

Nicholson said in his acceptance speech that it was an honour to be nominated alongside "my old bike pal Fonda."

Fonda remained prolific for the rest of his life with notable performances as the heel in Steven Soderbergh's The Limey, from 1999, and in James Mangold's 2007 update of 3:10 to Yuma. He'd even play himself in an episode of the spoof documentary series Documentary Now! about life as "an Oscar Bridesmaid."

Fonda is survived by his third wife, Margaret DeVogelaere, his daughter, actress Bridget Fonda, and son, Justin, both from his first marriage to Susan Brewer.

"In one of the saddest moments of our lives, we are not able to find the appropriate words to express the pain in our hearts," his family said in a statement.