Navient, one of the largest student loan servicers, will cancel $1.7 billion in private student loans, after a deal it reached with 39 states.

The settlement, announced on Thursday, resulted from accusations that the lender gave out loans to millions of borrowers who’d be unlikely to be able to repay them. The agreements resolve all six outstanding state lawsuits against Navient, company officials stated.

The loans in question are private loans, meaning they are not guaranteed by the federal government. As part of the settlement, the company will make a one-time payment of approximately $145 million to the states.

Nearly 66,000 borrowers are expected to get their loans cleared under the $1.85 billion deal.

More from Personal Finance:
What to know about your 2022 Medicare costs
How to appeal income-related Medicare charges
Key considerations if you want a Medigap policy

“At long last, the student loan borrowers who had been forced to shoulder the burden of dangerous and predatory private student loans made by Sallie Mae and owned by Navient will finally be debt-free,” said Mike Pierce, executive director of the Student Borrower Protection Center.

(Sallie Mae is the forerunner company of Navient.)

Navient denies that it violated the law.

“The company’s decision to resolve these matters, which were based on unfounded claims, allows us to avoid the additional burden, expense, time and distraction to prevail in court,” said Navient’s chief legal officer Mark Heleen, in a statement.

As the cost of higher education swells, more Americans have turned to private student loans.

The private student loan market has grown by more than 70% over the last decade, and stands at around $130 billion, according to a recent report by the Student Borrower Protection Center.

By the end of 2019, Americans owed more in private student loans than they did for past-due medical debt or payday loans.