Don Knotts began looking beyond Mayberry during the fifth season of The Andy Griffith Show because he believed the series was about to end. Instead, Andy Griffith agreed to keep it going—and Knotts had already arranged his next move.

The decision grew out of what the two actors had expected for years. Griffith had said he planned to stop after five seasons, so Knotts began taking meetings while preparing for life after Barney Fife. His performance as the anxious deputy had made him a star, but the prospect of the show ending meant he needed another job.
At Universal, studio chief Lew Wasserman saw potential for Knotts beyond television. Knotts had recently appeared in The Incredible Mr. Limpet, and Wasserman believed his tightly wound comic style could work in family films. The studio offered him a long-term movie deal, with unusual freedom to choose writers and other creative personnel. Knotts accepted.
Then the plans for Mayberry changed. CBS wanted the series to continue, and Griffith agreed to stay for three more seasons. Knotts, however, had spent months preparing for a future outside the show and had committed to Universal. His departure was not a sudden break with Griffith; it followed a decision made on the assumption that the series was ending.
A different Mayberry
Barney stopped being a regular after the 1965 season. Knotts moved into films, including The Ghost and Mr. Chicken, while the television series continued without the partnership that had helped define its comic rhythm.
That rhythm had taken shape early on. Griffith recognized that Knotts worked best as the center of the comedy, allowing Andy Taylor to become the calmer character reacting to Barney’s nerves, pride and overconfidence. With Barney no longer a regular, Mayberry carried on, but its central dynamic had changed.
A friendship beyond the show
Griffith later acknowledged that losing Knotts hurt. The separation did not end their friendship: Knotts returned several times as Barney, and the two worked together again years later on Matlock.
In retrospect, the departure can look like a carefully planned cast transition. At the time, it was shaped by a misunderstanding about the show’s future. Knotts found another path because he expected Mayberry to close; Griffith’s decision to continue came after Knotts had already made his commitment. The result was a career shift for Knotts and a lasting change in the show’s chemistry.