De-Luxed: Luxembourg prime minister to resign over spy scandal (VIDEO)

Luxembourg Prime Minister Jean-Claude Juncker, the European Union's longest-serving leader, announced plans to resign Thursday in the wake of a spy scandal involving the country's secret services.

Juncker had been prime minister since 1995 and was head of the Eurogroup of nations that share the EU's common currency between 2005 and early this year.

More from GlobalPost: Juncker survives Luxembourg's first confidence vote in 150 years

He has not been accused of any criminal wrongdoing, but has come under attack for failing to keep the intelligence service in check and stopping illegal activity like phone-tapping.

Juncker, 58, told parliament he would tender his resignation on Thursday.

The move came after his junior partner, the Socialists, withdrew its support of Juncker and insisted he take political responsibility for the country's secret service corruption.

More from GlobalPost: Troubled Juncker is Europe's longest-serving leader

Socialist leaders also called for the dissolution of parliament and early elections.

"The intelligence service was not my top priority," Juncker told parliament Wednesday. "Moreover I hope Luxembourg will never have a prime minister who sees SREL as (his or her) priority."

While responsible for a country of just 539,000 residents, Juncker had become one of Europe's most high-profile politicians in recent years because of his role in the Eurogroup's efforts to hold the EU together and contain a rolling debt crisis.