It's the biggest fine ever against a bank by the US government.
A Senate report earlier this year claimed HSBC Mexico unit shipped $7 billion in cash to its US Affiliates.
The money is believed to be tied to Mexican drug cartels and banks linked to terrorism.
HSBC says it accepts responsibility for its past mistakes.
As part of the agreement, the bank is required to take further actions to strengthen its compliance policies and procedures.
But the nearly $2 billion fine isn't going to cripple HSBC, one analyst says the bank will earn back that much cash in just 41 days.