*Spoiler Alert: this story reveals what happens in the series finale*
Fans of "The Office" gave a tearful goodbye to their favorite Dunder Mifflin Paper Co. Thursday night in the series finale after an eight-year run.
The NBC workplace comedy, set at the fictional company's Scranton, Pa., branch, tied up all the loose ends. The last episode was set a year after last week's, so a lot had changed. Wedding bells rang for Dwight (Rainn Wilson) and Angela (Angela Kinsey). Pam (Jenna Fischer) and Jim (John Krasinski), the loving couple that stole the hearts of fans each season, revealed a big move, and Michael Scott (Steve Carell) surprised his favorite group of people one last time.
Urgent: Is Obamacare Hurting Your Wallet? Vote in Poll
Jim played one final prank on Dwight, telling him he had to step down as his best man.
No one was more shocked at Michael's appearance than Dwight.
“I can’t believe you came,” Dwight said.
The return of Carell, who left the show in 2011, had been in question for some time. NBC said he would not return
, while sources close to the show said he would be coming back. Carell previously told reporters he wasn't returning because he didn't want to overshadow his cast.
But it wouldn't be a true finale without the eccentric, cringe-worthy boss who looked at his Dunder crew as his family. Producers were careful not to make Carell the focus of the finale, coming back as Dwight's best man with one or two lines.
“I feel like all my kids grew up and then they married each other. It’s every parent’s dream,” Michael said, teary-eyed looking at Jim, Pam, Angela, and Dwight seated at a table.
Jim and Pam revealed they are moving to Austin, Texas in pursuit of bigger and better things, but the two made it clear they will never forget where they came from.
“Even if I didn’t love every minute of it, everything I have I owe to this job. This stupid, wonderful, boring amazing job,” Jim said.
When they quit, Dwight fired them on the spot – but only so they could get severance pay.
And Mindy Kaling and B. J. Novak returned so Ryan and Kelly could have their own happy ending.
Dwight, who took over at Dunder when Michael left, made amends with other employees as well, including Kevin (Brian Baumgartner), who had bought a bar after Dwight fired him from the company.
"It was nothing personal," Dwight tried to explain. "It's just that you were terrible at your job."
Meanwhile, Andy (Ed Helms), who had left the company to live out his dreams of becoming famous, hasn't gotten very far. He did, however, become famous on YouTube when a video captured him bursting into tears at an audition and went viral.
Pam's words were captured on the final moments of the show.
"There's a lot of beauty in ordinary things," she said. "Isn't that the point?"
The PBS "mockumentary" of what office life is really like
premiered in 2005. It was based on the British comedy of the same name, which premiered in 2001. Ricky Gervais starred and co-created the show. During its run on NBC, it picked up four Emmys and a prestigious Peabody award, according to Fox News.
ALERT: Government ‘Blunder’ Spawns Massive Profit Opportunity
Rosanne Barr Gets Another Shot With New NBC Show, Plus Role on ‘The Office’
© 2015 Newsmax. All rights reserved.