Consol Energy said Monday it has reached an agreement to sell five of its coal mining operations in West Virginia to Murray Energy in a deal worth roughly $3.5 billion—a total that includes cash, assumed debt and future considerations.

Canonsburg, Pa.–based Consol, the country’s largest producer of coal extracted from underground mines, said the sale fits into its plan to focus more closely on its natural gas operations.