Neoenergia shareholders have agreed to merge the company with Iberdrola’s Elektro, creating the largest electric utility in Brazil.

Iberdrola, which owns 39% of Neoenergia, said it would inject an unspecified amount of capital into the company in return for Elektro’s assets.

Iberdrola will hold 52.5% of the new company, while Previ, the pension fund for employees of the state-owned lender Banco do Brasil, will have 38.2% and Banco do Brasil will have 9.35%.

Ahead of the merger, Previ has 49% of Neoenergia and Banco do Brasil has 12%.

Iberdrola also said it has promised to list the new company publicly, with timing dependent on the other shareholders.

“The shareholder agreement includes Iberdrola’s commitment to list part of the capital whenever Previ and Banco de Brasil deem it appropriate,” Iberdrola said.

The new shareholder agreement also limits the sale of shares and obliges Iberdrola to channel all its Brazilian investments through the new company. 

Neoenergia will have 13.4m customers on a 585,000km distribution network. The company will have 2,080 MW in wind and hydroelectric power in operation and another 1,460 MW in development. The company will also have a 530 MW thermal power plant.

Neoenergia and Elektro combined generated €7.93bn ($8.88bn) in revenues and €934m in EBITDA in 2016, Iberdrola said.

S&P Global Ratings said its BB rating for Neoenergia was not immediately affected by the merger. It rates Iberdrola BBB+ with a stable outlook.

The merger is subject to approval from Brazil’s antitrust agency Cade and the electric energy authority Aneel.