FARGO, N.D. (AP) — A Norway-based oil company that illegally operated a well in North Dakota that was established by another company has agreed to pay a nearly $2 million settlement to avoid legal action in the case.

Authorities say the well was drilled in December 2011 on unleased federal land about two weeks after Statoil Oil & Gas Services Inc. acquired Brigham Oil & Gas L.P.

READ MORE: U.S. Rep. Maxine Waters Visits Brooklyn Center Protests

An investigation that began two years later discovered that Statoil had produced and sold federally owned oil and natural gas valued at nearly $2 million.

READ MORE: Stimulus Check Latest: Is A Fourth Relief Payment Coming?

U.S. Attorney Timothy Purdon says Statoil’s cooperation in the investigation and willingness to settle the case without a lawsuit showed “good corporate citizenship.”

A Statoil spokeswoman could not be immediately reached for comment.

MORE NEWS: Angels Vs. Twins Game Postponed

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)