David Wallace buys back Dunder Mifflin in “Free Family Portrait Studio” at the end of Season 8, Episode 24.

A small correction: he does not do it in the earlier episode “Turf War”; that episode only sets up the purchase idea.

Episode details

  • Episode: “Free Family Portrait Studio.”
  • Season/Episode: Season 8, Episode 24.
  • What happens: David Wallace returns and acquires Dunder Mifflin, which changes the company’s direction going into the next season.

Quick note

If you were asking about the moment Andy first brings the idea to David, that happens in “Turf War” the episode before.