Far fewer residents in Massachusetts lost their homes to foreclosure last year, another sign that the economy and the housing market have stabilized.

In December, lenders seized 265 homes, 65% less than a year earlier. And for all of 2012, completed foreclosures in Massachusetts dropped by nearly 13 percent from the prior year, to 7,424, according to Warren Group, a Boston firm that tracks real estate activity.