When Michael unintentionally outs a gay employee, he stumbles through a sensitivity mine-field. Also, we find out what happened with Jim and Pam.
After meeting Jan in Philadelphia for the annual Northeastern Mid-Market Office Supply Convention, Michael enlists Dwight's help in organising a party in his room for fellow conventioneers. Meanwhile, Ryan and Kelly join friends out on a double date.
After Jan busts Michael for declaring it's "movie Monday", where everyone watches a movie instead of working, an upset Angela pushes Dwight into making a play for Michael's job. Meanwhile, Pam internet shops and has a fashion show at lunch and Jim plays video games.
Michael's former boss, Ed Truck, dies and Michael thinks the entire office should be grieving as much as he is, even though most of the employees didn't work for Ed. Unfortunately for them, he insists they attend a grief counselling session… and a funeral for a bird.
Dwight thinks he's teaching Ryan how to be a better salesman by putting him through a fraternity-like initiation on the Schrute beet farm. Back at the office, Jan asks Pam to account for Michael's day in an hour-by-hour log.
Corporate won't pay for the office Halloween party, so Michael convinces everyone to attend a party for the Hindu holiday Diwali. At the party, Ryan freaks out when Kelly's parents seem to expect him to ask for Kelly's hand in marriage.
Jan delivers the bad news to Michael that the Scranton Branch is closing. This leads Michael on a quest to keep up the staff's spirits. Meanwhile, everyone imagines what their lives will be like in the wake of the closure.
Old friends Jim and Pam are back together after months apart as the Scranton branch and Stamford branch are finally merged. Michael, Dwight and the other employees are faced with a variety of changes.
Michael tries to be supportive after learning that one of the new employees is an ex-convict, but gets upset when the staff starts to compare the office to prison. Meanwhile, Jim 'coaches' Andy when he decides to make a play for Pam.
Michael sends out an inappropriate photoshopped Christmas card and gets his heart broken for the holidays by girlfriend Carol. Andy takes Michael out drinking with Dwight and Jim, while tensions on the party planning committee result in two rival parties being thrown.
Still in 'vacation mode' after his trip to Jamaica, Michael tries to hang on to his relaxed island vibe despite a wave of office hassles; but it becomes too much when an e-mail containing a racy vacation photo is forwarded around the office.
On Andy's suggestion, Michael has staffers team up for sales calls, leading to some interesting, insightful moments in the field. Meanwhile, Dwight attempts to cover for Angela after she misses an important deadline. Furthermore, Karen receives surprising information.
Oscar returns from his long vacation with mixed emotions on whether or not he still wants to be a part of the office. Meanwhile, Andy takes advantage of recent events to get closer to Michael, and Jim turns to Karen and Pam for help to stage a prank on a new target.
Acting on bad advice from his friend Todd Packer, Michael brings two 'adult' performers into the office - a stripper and Ben Franklin - in honour of Phyllis's wedding shower. Meanwhile, Karen confronts Pam about her past with Jim.
Phyllis regrets giving Michael an important job at her wedding after several embarrassing moments. Pam has flashbacks of her own wedding planning when she sees Phyllis's decorations. Meanwhile, Dwight is determined to catch wedding crashers.
Ryan invites Michael to be a guest speaker at his business school. Meanwhile, Dwight battles a bat that gets loose in the office, and Pam invites co-workers to her first art show.
Michael and Jan go public with their relationship during a party at their CFO's home. At the party, Jim meets Karen's ex. Meanwhile, the rest of the office decides to go to happy hour for drinks.
Darryl decides to meet with Michael to negotiate a pay increase. Meanwhile, Jim deals with the consequences of Pam's confession to Roy.
Andy returns to the office after several weeks of anger management training, determined to make a fresh start with all the employees. Meanwhile, it's safety training day in the office, and Michael and Dwight are on a mission to illuminate the dangers of the workplace.
Michael tries to manage the media with an impromptu press conference after a large shipment of paper is accidentally sent out with an obscene watermark. Jim and Andy also attempt to calm the high school principal who has sent out prom invites on the affected stationery.
Outrage breaks out in the office after Phyllis gets an unexpected eyeful from a flasher. Michael makes some important personal decisions when he takes the women on a special outing. Meanwhile, Dwight and Andy work on catching the predator.
Michael is being considered for a position in Corporate and has to recommend his replacement. While the group expects a fun outing at Lake Scranton, Michael has planned a day of Survivor-like competitions to find his successor.
The office is still buzzing from the events of their day at the beach. A job opening in corporate pits co-worker against co-worker as Michael, Jim and Karen all head to New York for final interviews. In Scranton, Dwight's new regime institutes sweeping reforms.