The former co-owner of a Delaware County mortgage company was sentenced Thursday to pay $11.5 million in restitution for his role in a massive fraud scheme that bilked several banks and left more than two dozen homeowners on the hook for two mortgages.

David Fili Jr., 48, of Drexel Hill, previously pleaded guilty to 10 counts of wire fraud and two counts of bank fraud, according to the U.S. Attorney’s Office. U.S. District Judge Joel H. Slomsky also sentenced Fili to one day in jail and five years’ supervised release.

Fili co-owned Capital Financial Mortgage Corp. with George Barnard, 47, of Newtown Square. Between 2005 and March 2013, the pair issued refinancing loans to CFMC customers. Instead of using the money to pay off their customers’ outstanding first mortgages, they diverted $9,781,977 to themselves from bank accounts belonging to CFMC and several title companies owned by Barnard.

The used the money to buy multiple vacation homes in Avalon, cars, yachts and, in Fili’s case, to fuel a gambling addiction. In July, Barnard was sentenced to five years in prison and ordered to pay a similar amount in restitution.