JPMorgan is expected to sign a $13bn settlement with the government today to put to rest claims it sold shoddy mortgages to investors during the run-up to the financial crisis. The settlement would be the culmination of weeks of negotiation between the country's biggest bank and the government, Reuters reported. The broad strokes of the deal were agreed upon in mid-October, and negotiators have spent the intervening weeks ironing out the details. This week, officials announced that included in the $13bn deal would be a $4bn settlement with the Department of Housing and Urban Development. About $1.5bn would be used by the bank to write down some loan values in order to forgive some borrower debt, according to Reuters. About $500 million would go to lowering monthly loan payments, and the residue would go to various other measures, including providing loans to low- to moderate-income buyers, Reuters reported.