A dispute over the European Union’s energy policies has led to the collapse of the coalition government in Norway, just as U.S. President Donald Trump’s threats to impose tariffs and claim Greenland were set to reignite the debate over Oslo’s potential EU membership.

Norway’s euroskeptic Center Party resigned from the government on Thursday over a disagreement regarding the adoption of the EU’s energy policies, leaving the center-left Labour Party to govern alone just eight months before the elections.

The announcement by Finance Minister Trygve Slagsvold Vedum deprives Prime Minister Jonas Gahr Støre of his sole coalition partner and eight of his 20 cabinet members, including the ministers of defense, finance, and justice.

Norway, a NATO member, is not part of the European Union, but the Labour Party aims to maintain strong ties with the EU, partly due to the looming threat of a trade war between Europe and the United States.

Prime Minister Jonas Gahr Støre’s push to implement three EU energy directives prompted the abrupt departure of his euroskeptic coalition partner, the agrarian Centre Party.

Both coalition parties had pledged in recent weeks to oppose the renewal of Norway’s electricity interconnections with Denmark, sparking concern across Europe.