The Office fans were shocked when Jim and Pam got divorced in the Season 6 episode, “Niagara.” This episode, which was split into two parts, was directed by Paul Feig and written by Greg Daniels and Mindy Kaling. It aired on October 8, 2009.

The episode begins with Jim and Pam planning their wedding in Niagara Falls. The two are excited to get married and start their lives together. However, things quickly take a turn when Jim’s old flame, Karen, shows up. Jim and Karen share a passionate kiss, leaving Pam devastated.

The episode then follows Jim and Pam as they try to make their relationship work despite the kiss. Jim apologizes and tries to make it up to Pam, but she is still hurt and angry. Eventually, the two decide to go ahead with the wedding, but it is clear that the relationship is strained.

At the wedding, Jim and Pam exchange vows and kiss, but the tension between them is still palpable. After the ceremony, the two take a romantic boat ride on the Niagara River. However, the romantic moment is quickly ruined when Jim reveals that he still has feelings for Karen.

This revelation leads to a heated argument between Jim and Pam. In the end, the two decide to get divorced. The episode ends with Jim and Pam walking away from each other, their future uncertain.

“Niagara” is a heartbreaking episode of The Office that shows the difficulties of relationships. It is a reminder that even the strongest relationships can be tested and that sometimes, the best thing to do is to let go.