Israel and Lebanon have been at war since 1948, but the countries are close to an agreement that could increase production of natural gas, helping energy-starved Europe.

Officials from the two countries have said they are close to resolving long-running disputes over their maritime borders, which would allow energy companies to extract more fossil fuels from offshore fields in the Mediterranean Sea.

The increased production won’t make up for the gas that Europe is no longer getting from Russia. But energy experts say an Israel-Lebanon agreement should give a vital push to efforts to produce more gas in that part of the world. Over the last four years, energy production in the eastern Mediterranean has been growing as Israel, Egypt, Jordan and Cyprus have worked together to take advantage of oil and gas buried under the sea.

“This is a very important step for the region to come into its own,” said Charif Souki, the Lebanese-American executive chairman of Tellurian, a liquefied natural gas company based in Houston. “Players are finally realizing that it’s better to cooperate than to continuously fight.”