It’s among the largest settlements reached over the past several years in a series of lawsuits by local, state, Native American tribal governments and others seeking to hold companies responsible for a deadly epidemic. Aside from the Purdue deal, others worth around $50 billion have been announced — and most of the money is required to be used to stem the crisis.

The deal still needs court approval, and some of the details are yet to be ironed out.