The move was condemned by the nationalist Law and Justice (PiS) party, of which they are members, as "an illegal kidnapping and a violation of all democratic rules".

However, members of the new, pro-European coalition government have said that it shows nobody is above the law.

Below are some of the main events that resulted in their conviction.

ANTI-CORRUPTION AGENCY

Kaminski was first elected a member of parliament in 1997 and was re-elected in 2001 and 2005. He resigned in 2006 to become the head of the Central Anti-Corruption Bureau.

Political opponents said he and his associates pursued corruption with excessive zeal, using methods they said sometimes circumvented laws and hounding innocent people.

In 2009, Kaminski and Wasik were accused of abuse of power for allowing agents under their command to use entrapment in an investigation. Both have denied wrongdoing.

PARDON

In 2015, Kaminski and Wasik were found guilty and sentenced to three years in prison. They appealed.

A few months later, after PiS came to power, President Andrzej Duda pardoned both men, allowing Kaminski to become interior minister.

Lawyers questioned whether Duda was entitled to pardon them before an appeals court issued a final ruling. The Supreme Court said last year that the case should be reopened.

COURT'S FINAL DECISION

After reopening the case, Kaminski and Wasik were sentenced in December to two years in prison. On Monday a court issued orders to take both men to prison.

Police entered Poland's presidential palace to detain the two on Tuesday. Prime Minister Donald Tusk had earlier accused Duda of obstructing justice after the two lawmakers appeared at the palace, prompting police to search for them in cars leaving the building.

Hundreds of protesters gathered in front of the palace and in front of a police station where the two were being held. The crowd chanted "Free political prisoners" and "Shame!"

In protest against his detention, Kaminski started a hunger strike, while Duda said he was deeply shaken by the arrests and vowed he would not rest until Kaminski and Wasik were freed.

(Reporting by Anna Koper; Editing by Nick Macfie)