Exxon Mobil has agreed to sell its two-thirds stake in Esso Thailand to Thai energy firm Bangchak Corp., the companies said, in a deal valued at about 20.1 billion baht ($603 million).

Bangchak shares closed up 9% while Esso Thailand, which closed at 11.2 baht on Jan. 11, fell 17% after the companies made the announcement in separate statements.

Exxon Mobil's shares traded up about 1%.

"The final price will be based on Esso Thailand's latest quarterly earnings after conditions are finalized," Bangchak CEO Chaiwat Kovavisarach told a news conference.

Bangchak said in a statement it would buy Esso Thailand shares at an indicative price of 8.84 baht per share, putting the firm's enterprise value, which also includes debt and cash, at 55.5 billion baht based on its third quarter earnings.

"There will be synergy and cost savings of between 1.5 billion baht to 2 billion baht per year," Banchak CEO said.

The sale includes the Sriracha oil refinery, select distribution terminals and a network of Esso-branded retail fuel stations, which will later be re-branded to Bangchak.

Exxon Mobil said it would "continue to supply the Thailand market with branded finished lubricants and chemical products through a new company to be formed," while it focuses its investment on global production facilities.

Bangchak said it would initially buy Exxon Mobil's 65.99% stake and then launch a tender offer for remaining shares, held mainly by institutional funds at the same price.

The transaction is expected to close in the second half of 2023, subject to regulatory approvals.

The deal will be funded by cash on hand and bank loans, Bangchak said, noting it would add refining capacity of 174,000 bbl/d and 700 service stations.

"Debt-to-equity ratio not to exceed two times after the deal," Bangchak vice president for finance, Phatpuree Chinkulkitnivat said.