Goldman Sachs has agreed to pay the Malaysian government $3.9 billion over the 1MDB scandal, the country’s ministry of finance announced on Friday.

The multinational investment bank came to the settlement to compensate the country for losses from a money laundering and corruption scheme through the state investment fund 1Malaysia Development Berhad (1MDB).