GlaxoSmithKline said on Thursday it had agreed to pay $3.0 billion (2.2 billion euros) to settle long-running disputes with the US government over how the British pharmaceuticals group marketed and developed drugs.

GlaxoSmithKline said in a statement that it had "reached an agreement in principle with the US government to conclude the company's most significant ongoing Federal government investigations."

The investigations included the probing of GSK's sales and , begun by the US Attorney's office of Colorado in 2004 and later taken over by the US Attorney's Office of Massachusetts.

And they also referred to the Department of Justice's probe into the development and marketing of its former blockbuster Avandia.

said that it had already set aside sufficient cash funds to pay the legal costs, although some terms still needed to be agreed.

GSK chief executive Andrew Witty said the $3.0 billion deal was "a significant step toward resolving difficult, long-standing matters which do not reflect the company that we are today."

He added in a statement: "In recent years, we have fundamentally changed our procedures for compliance, marketing and selling in the US to ensure that we operate with high standards of integrity and that we conduct our business openly and transparently."