Britain's BT Group is in early stage talks with Spain's Telefonica on a deal to buy UK mobile operator O2.

Two sources said the company has also begun negotiations with EE as it seeks a return to the British consumer mobile market. 

Both Telefonica and BT confirmed they were in talks after Spanish website El Confidencial reported that O2 could be sold in return for a 20% stake in BT as part of a "strategic alliance" to strengthen the two groups.

BT also said it was in talks with another British mobile operator, which two sources close to the matter identified as EE, owned by Orange and Deutsche Telekom.

"We have received expressions of interest from shareholders in two UK mobile network operators, of which one is O2, about a possible transaction in which BT would acquire their UK mobile business," BT said. 

"All discussions are at a highly preliminary stage and there can be no certainty that any transaction will occur," it added. 

Telefonica has said that O2 remains core to its business but has not ruled out asset sales to meet a target to reduce debt to less than €43 billion by the end of the year. 

A deal would bring O2 back into the BT fold, having been spun off from the former British telecoms monopoly in 2001 and then bought by Telefonica eight years ago. 

BT, which leads the British market in broadband, is already working on a complicated plan to get back into consumer mobile using a combination of its own airwaves, in-home receivers that route calls over its fixed-line network, wifi hotspots and fill-in capacity rented from EE. 

A Telefonica executive did not rule out a sale of O2 at an industry conference last week, saying the company would have to "evaluate its options" if more of the market moved to bundling fixed and mobile telecoms services. 

Analysts put O2's value at nearly £10 billion today. 

O2 accounted for 14% of Telefonica's global sales in the first nine months of the year and 10.5% of its core earnings.