JPMorgan Chase & Co. settled a lawsuit by Texas mineral-rights owners who accused it of cutting sweetheart deals with oil company clients to cheat them out of $681 million in compensation.

The dispute centered on payments for rights to drill in the Eagle Ford, a shale formation underlying much of central and southwest Texas that has helped put the U.S. in competition with Saudi Arabia and Russia for title of world’s largest oil producer.