Jim Halpert and Pam Beesly's relationship in The Office was truly a romance for the ages. Fans were delighted when, in Season 3—after years of flirting—John Krasinski and Jenna Fischer’s characters finally got together. But an alternative plan for the show’s ninth and final season saw the couple going their separate ways.
Season 9 saw one of the most stressful storylines the show had to offer when Jim took a job in Philadelphia and Pam struggled to take care of their children on her own back in Scranton, putting intense strain on their otherwise seemingly perfect relationship. In one unforgettable scene, a particularly tense phone call between the couple ends with Pam in tears. Fischer’s character then turns to someone off camera named Brian for advice.
As Collider reports, Pam and Jim's relationship could have taken a turn for worse in the final season—and the writers had planned it that way. As recounted in Andy Greene's new book, The Office: The Untold Story of the Greatest Sitcom of the 2000s, series creator Greg Daniels sat down with each of the show's stars before starting the final season to discuss where their characters would go. John Krasinski, who played Jim, pitched the idea of putting Jim and Pam’s relationship on thin ice. According to Krasinski:
"My whole pitch to Greg was that we’ve done so much with Jim and Pam, and now, after marriage and kids, there was a bit of a lull there, I think, for them about what they wanted to do … And I said to Greg, ‘It would be really interesting to see how that split will affect two people that you know so well.'"
Several writers weighed in with ideas about how they might handle a split between Jim and Pam from a narrative standpoint—though not everyone was on the same page.
Warren Lieberstein, a writer on the series, remembered when the idea of bringing Brian—the documentary crew's boom operator—into the mix. “[This] was something that came up in Season 5, I think," Lieberstein said. "What if that character had been secretly there the entire time and predated the relationship with Jim and had been a shoulder that she cried on for years?’ It just seemed very intriguing." Apparently, the writers thought breaking the fourth wall would jeopardize the show, so they saved it for the last season.
Writer Owen Ellickson said there was even some talk of Pam and Brian “maybe hooking up a little bit," but the negative response to the storyline led the writers to "pull the ripcord on [Pam and Jim's separation] because it was so painful to fans of the show." Ellickson said that they backtracked so quickly, they even had to re-edit certain episodes that had already been shot to nix the idea of Jim and Pam splitting up. Which is something the show's millions of fans will be forever grateful for.