By Andrés González, Clara Denina and Stanley Carvalho

Carlyle, whose energy and natural resources division includes funds such as Neptune Energy, could reach an agreement within weeks, one of the sources said.

Cepsa and Carlyle declined to comment.

Other investment firms including CVC, Apollo and Macquarie had expressed interest in buying a stake in the Spanish oil major, which is owned by Abu Dhabi wealth fund Mubadala Investment Company, sources previously told Reuters.

However, Carlyle has emerged as the favourite bidder in the process which is led by Rothschild, the sources said, although no deal has been finalised or agreed.

In October, Mubadala backed out of a plan to list 25 percent of Cepsa on the Madrid stock exchange citing uncertainty in international capital markets and lacklustre appetite among international investors.

Cepsa reported a 15 percent fall in annual adjusted net (CCS) profit to 754 million euros last year.

Political uncertainty in Europe, U.S. political tensions and a global economic slowdown, topped off by the U.S.-China trade war and sanctions against Iran and Russia, deterred a series of initial public offerings (IPO) in the past few months.

Proceeds from global IPOs fell by 83 percent to $2.6 billion (2 billion pounds) in January compared with the same month last year, Refinitiv data shows, while proceeds from European listings dropped 97 percent in the first two months of the year.

In the energy sector, Saudi Aramco was among the most high-profile listings that were halted in 2018.

At the smaller end of the scale, oil trader Vitol pulled its IPO of Varo Energy and sources said Kazakhstan has deferred the IPO of national oil firm KazMunayGaz to beyond 2019.

Conversely, a recovery in the oil price to its current level of around $65 a barrel, from $30 in 2016, coupled with attractive asset valuations, has driven a surge in M&A activity by private equity firms in the energy sector.

In 2013 Carlyle launched a $2.5 billion euro energy fund - Carlyle International Energy Partners (CIEP) - and has since then made a number of high profile acquisitions.

In 2017, it teamed up with CVC to buy the oil and gas assets of French utility Engie.

Carlyle's Neptune Energy fund is currently bidding for the oil and gas assets being sold by EDF's Italian unit Edison, according to sources.

(Additional reporting by Ron Bousso; editing by Pamela Barbaglia and Susan Fenton)

By Andrés González, Clara Denina and Stanley Carvalho