Two financially-strapped families who thought they were on “The Oprah Winfrey Show” to discuss their impending home foreclosures got a nice surprise when will.i.am appeared out of nowhere and paid off their mortgages.

On Monday’s episode, the Eller family and the Allgood family explained how the national recession took its toll on them. For John Eller, losing his job as a corporate executive forced him to take lower paying jobs in order to support his wife and eight children.

Alycia Allgood (right) with daughter Asia

For single mother Alycia Allgood, buying her first home after years of saving was an accomplishment she could be proud of, but when her company downsized, she too fell months behind on her mortgage payments.

To the surprise of both families, Black Eyed Peas star Will.i.am stepped forward to pay the combined $350,000 owed by the Ellers and the Allgoods.

Will.i.am said he will continue helping families facing foreclosure through his new i.am home fund, which will collect donations for families struggling with mortgage payments and at risk for losing their homes.

“If you bring people together who have big hearts and [are] caring, they can make a difference and help America’s problem out,” he says.

Also on Monday’s episode, Oprah sang and danced to a performance of the “OMG” from Usher and the tune’s producer, will.i.am. Toward the end of the song, Usher tossed Oprah his sunglasses to wear as she continued singing and dancing. Click here to watch.

Just last Monday Oprah co-hosted the Met Gala, and danced on a banquette (after several tequila shots) at the Tequila-sponsored afterparty, along with Usher and Diddy.