Allstate Corp has sued Bank of America Corp and 18 other defendants over losses it said it suffered on more than $700 million of mortgage debt it bought from Countrywide Financial Corp.

In a complaint filed Monday in Manhattan federal court, Allstate, the largest publicly traded U.S. home and auto insurer, alleged that Countrywide misled it into believing the securities it bought were safe, and that the quality of residential home loans backing them was high.

Defendants knew the loans offloaded onto Allstate were a toxic mix of loans given to borrowers that could not afford the properties, and thus were highly likely to default, the complaint said. Allstate suffered significant losses as a result, the complaint said.

Among the defendants are several former Countrywide officials, including long-time Chief Executive Angelo Mozilo.

Countrywide was once the largest U.S. mortgage lender. Bank of America bought the company in July 2008.

Bank of America and Mozilo's lawyer David Siegel did not immediately return calls seeking comment.

In afternoon trading, Bank of America shares were up 10 cents at $13.37 on the New York Stock Exchange.

(Reporting by Jonathan Stempel in New York; Additional reporting by Dan Levine in San Francisco)