AUSTIN, Texas (AP) — A Florida-based energy company has announced an $18.4 billion deal that would give it an 80 percent stake in Texas’ largest electric utility.

NextEra Energy Inc. said Friday that it’s buying Oncor from its parent company, Energy Future Holdings, which entered one of the largest bankruptcies in U.S. history in 2014. It was facing $42 billion in debt fueled by low energy prices.