Ted Danson is revealing how being arrested with Jane Fonda, to raise awareness for climate change, “changed his life.”

The iconic actor was busted during one of Fonda’s Fire Drill Friday events back in October 2019.

RELATED: Ted Danson Has A City To Run In ‘Mr. Mayor’ Trailer

Joining “The Ellen DeGeneres Show” via video chat on Wednesday, Danson looked back on how the experience motivated him to do more for the environment.

RELATED: Mary Steenburgen Celebrates 25th Anniversary With ‘Dreamboat’ Ted Danson

“You can see it was kind of an exciting moment that I delighted in,” said the 73-year-old star of being arrested for the first time ever. “Mostly because I was with Jane Fonda.”

Danson then discussed how 83-year-old Fonda has “turned into be one of my real inspirations in life.”

He continued, “I think that arrest made me want to double down on climate change. Yeah, it meant a lot to meet her. It kind of changed my life.”

RELATED: Jameela Jamil Reveals She ‘Almost Died’ Due To Ted Danson’s Advice: ‘He Tried To Kill Me!’

Danson is currently starring in a new sitcom called “Mr. Mayor” with Holly Hunter and Bobby Moynihan.