Leonard Nimoy’s final television role took him into unexpectedly villainous territory. After spending years in retirement, the actor returned to the screen as the mysterious Dr. William Bell on Fox’s “Fringe,” turning what began as a limited appearance into a longer run on the sci-fi drama.

Created by J.J. Abrams, “Fringe” aired for five seasons from 2008 to 2013. The series centered on FBI agent Olivia Dunham, played by Anna Torv, and her uneasy partnership with disgraced scientist Walter Bishop, played by John Noble, and Walter’s son Peter, portrayed by Joshua Jackson.

Together, the trio investigated supernatural phenomena. The show initially leaned into a police-procedural format, with many early installments built around a case of the week, before later seasons devoted more time to an increasingly elaborate mythology and broader serialized storylines.

Nimoy entered that world as Bell, Walter’s former colleague and one of the drama’s most significant antagonists. Rather than immediately spelling out the character’s intentions, “Fringe” gradually revealed Bell’s motivations. Nimoy embraced that uncertainty in his performance.

“I’m trying to make him something of a mystery so that there will be an anticipation of what might be revealed in the future,” Nimoy said in a 2009 interview.

A role that brought Nimoy out of retirement

By the time “Fringe” premiered, Nimoy had been retired from acting for five years. The show’s “interesting” and “multi-layered” writing persuaded him to reverse that decision and accept the role of Bell — a career turn that apparently surprised Nimoy as much as anyone.

“I’m in a state of shock,” he said at the time. “I don’t know how it happened. I’m asking myself: How do these strange things happen to a life when you’ve made your plans and things change?”

Nimoy initially agreed to appear in only a handful of episodes. Bell’s “theatrical” qualities, however, gave him a reason to remain with the series for a more extended arc.

The character also offered a striking contrast with Nimoy’s best-known work as Spock on “Star Trek.” While Spock was described as the “responsible” half-Vulcan, Bell allowed Nimoy to explore less familiar aspects of his acting range and complicate the screen identity audiences associated with him.

“There were new aspects to the character that were attractive to me and some things that I enjoy playing that I haven’t gotten to play in a long time,” Nimoy explained in 2012.

More than a single character drew him back

Although Bell was the immediate attraction, Nimoy credited the larger “Fringe” creative team and ensemble with making his return worthwhile. He praised the writers, creators and producers, as well as the way the show developed its characters.

“The writers, creators and producers of the show are very bright,” he said. “I think ‘Fringe’ is a wildly imaginative show … All the characters are fleshed out wonderfully and the chemistry between the cast is terrific. I wanted to be a part of this project.”

That imaginative approach became a defining part of the series. Across its five-season run, “Fringe” drew praise for intricate plotting and visually striking effects, while Nimoy’s carefully measured portrayal of Bell received particular attention.

For Nimoy, the part ultimately became more than a brief return from retirement. Dr. William Bell stood as the last television role of his career — an enigmatic, increasingly villainous figure whose secrets matched the ambitious storytelling of “Fringe” itself.