As Jon Stewart's 16 years on "The Daily Show" was coming to an end on Thursday, the host still found a way to do some good.

Stewart partnered with charity fundraising company, Omaze and raised $2,235,520 for New York Collaborates for Autism, according to a press release.

“Over the last 16 years, no one has done more than Jon to engage people around the issues that truly impact our lives, and it’s fitting that he leveraged his final show to raise over $2M for this incredible cause," Omaze co-founder Matt Pohlson said in a statement.

How did he do it? Fans who donated $10 or more to the campaign were entered into a raffle-like drawing to attend the final taping of the show, meet Stewart, and hang out on-set.

A total of 47,048 people from 78 countries made donations averaging $45.50 each. The largest donation was $35,000. The winner donated $100.

Meet the winner:

One donor didn't seem to mind that he didn't win the big prize.

This is the second year "The Daily Show" and Jon Stewart participated in a charity giveaway with Omaze. Watch a video featuring last year's winner, Paul Dorasil, below: