Warning: This story contains spoilers.

Stephen Colbert is lending his voice to the resistance in Hulu’s “The Testaments” before he bids farewell to “The Late Show.”

Colbert made a surprise voice cameo in the new series, a sequel to “The Handmaid’s Tale” based on the follow-up novel by Margaret Atwood that follows a new generation of women in the totalitarian society of Gilead.

In the show’s first episode, which premiered Wednesday, Colbert serves as a broadcaster for the resistance network Radio Free Boston, where he reminds listeners, “Don’t let the bastards grind you down,” a rallying cry ripped from the series’ predecessor in a show that premiered during Donald Trump’s first administration.

Bruce Miller — creator and showrunner of the new Hulu series and its predecessor — told TV Insider that Colbert, whose late night TV staple was canceled by CBS in a move that many critics have perceived as political in nature, was “a good person to be the voice of free speech in America.”

“He very kindly did that for us, and I couldn’t think of anybody more appropriate to have on Radio Free Boston as the announcer,” said Miller in a separate interview with Entertainment Weekly.

Miller told EW that Colbert’s resistance to the president made him an “obvious choice” for the part, noting that he called the host around the time CBS announced that it would take the harsh Trump critic’s show off the air.

“You know, I knew that he’d be available, and he probably needed work,” joked Miller of Colbert, who is prepping for his final episode, set for May 21.

Colbert’s part in “The Testaments” adds to a growing list of new gigs revealed in recent months, including a guest spot on CBS’s police procedural dramedy “Elsbeth,” where he played a fictional late night host.

He confirmed late last month that he was co-writing a film for the “Lord of the Rings” franchise. He also provided his voice for the Digital Dean of Students in “Star Trek: Starfleet Academy.”

With his most recent gig in “The Testaments,” Colbert follows Oprah Winfrey, who portrayed a broadcaster in “The Handmaid’s Tale.”

By entering your email and clicking Sign Up, you're agreeing to let us send you customized marketing messages about us and our advertising partners. You are also agreeing to our Terms of Service and Privacy Policy.