To some it looks like a lowball bid, but Portugal has welcomed the offer because it considers the Chinese firm's pledge to keep EDP-Energias de Portugal intact more important than the price and it wants closer ties with a country that has ploughed billions into its economy.

That openness to investment from China, including in strategic sectors like energy, stands out amid suspicions elsewhere in Europe about Chinese acquisitions.

The Chinese state-owned hydropower giant became EDP's biggest shareholder in 2011. So when reports of merger talks between EDP and Spanish rival Gas Natural emerged in July 2017, it beat a path to the Lisbon government's door.

A Gas Natural takeover would have threatened CTG's ambition to use EDP to diversify beyond China, while Portugal's Socialist government feared a European rival could break up the business, an industry source familiar with the talks and a political source with knowledge of the government's position said.

"Nearly a year ago, Gas Natural approached EDP and that was the time when CTG started to think about this move," said one industry source with knowledge of CTG's takeover bid.

"If CTG has been a partner for more than six years, has invested in the company, in a strategic sector for Portugal, and has good relations with the government, it is natural that they talk," the source said.

EDP and Gas Natural denied being in talks last year. But just over a month after the reports, Portugal added a clause to its takeover laws allowing shareholders with the same ultimate owner to combine all their voting rights.

Previously, the votes would have been capped at 25 percent, whatever the size of their combined holdings.

That could be crucial as CTG's bid for EDP progresses. While it owns 23.3 percent, another Chinese state-owned company, CNIC, holds 5 percent, most recently buying 2 percent at the end of 2017.

CTG in China and a spokesman for the Portuguese government did not respond to requests for comment.

'PURELY POLITICAL'

CTG first bought 21.4 percent of EDP in December 2011 for 2.7 billion euros (2.4 billion pounds), stepping in when Portugal privatised the company to raise funds after an international bailout to stabilise government finances.

The Chinese company has since invested some 2 billion euros in power ventures with EDP, which has a portfolio of renewable energy assets such as wind, hydro and solar power in countries such as Brazil, the United States, France, Italy and Poland.

In April this year, there were reports of interest in EDP from another European utility, this time Engie. The French company declined to comment while EDP said at the time that no contacts had been established.

A few weeks later, CTG launched its takeover bid. It offered 9.07 billion euros for the rest of EDP on May 11, a premium of just 5 percent above the utility company's share price before the offer became public.

EDP described the offer as too low, but left the door open to negotiations. Some analysts expect EDP to ask for a 20 to 30 percent premium but no other bidder has yet emerged and EDP shares are trading less than 5 percent above the offer price.

"It was predictable and there have already been conversations with the government for a long time," said an industry source close to EDP who has knowledge of the talks.

"This is purely political," the source said. "CTG knew that there were many European companies looking at EDP, which is medium-sized and has interesting assets."

In its bid announcement, CTG made clear it saw EDP's long-term future as a Portuguese company strengthened by CTG's assets, with a large free float of shares that could potentially be used as a springboard for European expansion.

That will please the government, which wants to protect EDP's 6,000 jobs in Portugal and keep its headquarters in the country.

"What matters to the government is the strategic importance of EDP to the country," said Filipe Garcia, head of Informacao de Mercados Financeiros consultancy, adding that the takeover price was a secondary consideration for the government.

OPEN DOOR POLICY

Links between Portugal and China stretch back centuries to when the European nation controlled the port of Macau. In recent years, Lisbon has embraced Beijing's belt and road initiative to invest in infrastructure linking Asia to Europe.

Chinese firms now own 25 percent of Portugal's national grid, 27 percent of its largest listed bank, and all of its largest insurer and biggest private hospitals operator.

Prime Minister Antonio Costa also told parliament last week that the change to Portuguese takeover law last year was made with Chinese investors in mind.

"It was my initiative and aimed to ensure that Portugal would offer the same conditions to foreigners, namely Chinese, as Europeans," Costa said.

The clause added on July 29, 2017, was designed to favour the "capture of foreign direct investment from, namely, foreign state entities...", according to the text.

The combined shareholding of CTG and CNIC, a Chinese state-owned investment company, now comes to 28.5 percent, close to the 33 percent needed to assure effective control of EDP. Under Portuguese law, company statutes can only be changed if two-thirds of shareholders vote in favour.

Costa denied in parliament the change was made with CTG in mind: "This was approved a year ago, when there was no takeover, nor any prediction of a takeover bid."

'BONDS OF CONFIDENCE'

When CTG launched its offer, it was conditional on getting 50 percent plus one share, in line with Portuguese rules. However, market regulator CMVM said on May 23 it was waiving this requirement, effectively allowing CTG to raise its stake in EDP, even if it doesn't reach a simple majority.

"The Chinese have established bonds of confidence with Portugal," a senior political source told Reuters. "There is mutual confidence and that changes everything."

Chinese Foreign Minister Wang Yi paid a well-timed visit to Lisbon on May 18. He hailed Portugal's "open attitude" to foreign investment and promised Beijing would continue to encourage investment by Chinese firms in Portugal.

Chinese citizens have also poured 2 billion euros into Portuguese housing in the past few years, boosting a property market boom which has helped propel a strong economic recovery.

As Lisbon's ties with CTG have grown closer, its relationship with EDP has come under strain. The government was annoyed last year by what it saw as EDP Chief Executive Antonio Mexia's openness to potential European suitors, political sources with knowledge of the government's position said.

In January this year, EDP upset the government again when it stopped paying an extraordinary tax contribution energy companies have had to pay since Portugal's 2011-14 debt crisis.

"I won't comment," the prime minister told reporters at the time. "I only regret the hostile attitude that EDP has maintained and which therefore represents a change in the stance it had towards the previous government."

If CTG's bid does succeed, the timing could be auspicious, with Chinese President Xi Jinping planning to visit to Portugal later this year.

"The visit may signal a new phase of strategic partnership between the two countries, with the signing of agreements," Foreign Minister Augusto Santos Silva said after meeting his Chinese counterpart this month.

(Additional reporting by Shanghai newsroom; editing by Mark Bendeich and David Clarke)

By Sergio Goncalves and Axel Bugge