"We ended the procedure following a deal with the bank, which will pay 40 million Swiss francs (USD 43 million, 38 million euros)," Olivier Jornot, attorney general in the Swiss canton of Geneva, told reporters.
In a statement, the Geneva prosecutor's office said the bank had "rapidly agreed to begin paying an amount aimed at repairing the illegal acts committed in the past."
Geneva authorities opened the probe in February as the so-called Swissleaks scandal exploded following the publication of secret documents claiming the bank assisted many wealthy clients in thwarting the taxman.
Geneva lead prosecutor Yves Bertossa meanwhile explained that "it is difficult to prove acts of money laundering. That is why we preferred to go with a negotiated solution."
More From This Section
HSBC hailed the agreement, saying "the investigation found that neither the bank nor its employees are suspected of any current criminal offences."
"The bank has fully cooperated with the investigation throughout and will not face criminal charges," it said in a statement.
The bank insisted that it had in recent years "undergone a radical transformation," and had "implemented numerous initiatives designed to prevent its banking services being used to evade taxes or launder money."