The settlement announced on Thursday resolves claims in two lawsuits filed in New York by the Federal Housing Finance Agency (FHFA), the conservator since 2008 for the government-controlled mortgage companies.
The deal marked the 11th settlement the FHFA has reached in litigation that commenced in 2011 when the agency filed 18 lawsuits over about $200 billion in mortgage-backed securities, an investment product at the centre of the recent global financial crisis.
The FHFA's main case against Barclays accused the British bank of misleading Fannie Mae and Freddie Mac into buying $4.9 billion in mortgage-backed securities that later went sour.
As part of the deal, Barclays will pay $227 million to Freddie Mac and $53 million to Fannie Mae, the FHFA said.
Barclays said in a statement it was pleased to have reached a settlement and added it would not impact the bank's 2014 earnings.
To date, the FHFA has recovered $15.9 billion in direct connection with the lawsuits over similar securities, a spokeswoman for the agency said.
The accord with Barclays follows a $9.3 billion settlement last month with Bank of America Corp. Of that sum, $5.83 billion stemmed from claims in the 2011 lawsuits, the FHFA said.
Other banks that have reached settlements include JPMorgan Chase & Co, Citigroup Inc, Deutsche Bank AG and Morgan Stanley.
The FHFA also reached a separate $335.2 million accord with Wells Fargo & Co, which it did not formally sue.
U.S. District Judge Denise Cote, who is overseeing all but one of the remaining lawsuits, has scheduled September trial dates for Goldman Sachs Group Inc and HSBC Holdings plc.
The FHFA in a statement said it "remains committed to satisfactory resolution of the remaining actions."
The case is Federal Housing Finance Agency v. Barclays Bank Plc, et al, U.S. District Court, Southern District of New York, No. 11-06190.
(Reporting By Margaret Chadbourn; Editing by Chris Reese and Diane Craft)
By Nate Raymond and Margaret Chadbourn
Stocks treated in this article : Citigroup Inc
, JPMorgan Chase & Co.
, Bank of America Corp
, Goldman Sachs Group Inc
, Morgan Stanley
, Wells Fargo & Co
, Deutsche Bank AG
, HSBC Holdings plc
, Federal Home Loan Mortgage Corp
, Federal National Mortgage Assctn Fnni Me
, Barclays PLC