Fannie Mae, the government-sponsored mortgage-lending giant, won’t face criminal charges over its multibillion-dollar accounting irregularities, the U.S. Attorney’s Office said Thursday after two years of investigation.

“We have informed them that we are declining all charges against the company,” said Channing Phillips, spokesman for U.S. Attorney Kenneth Wainstein.