The 63 year old has been stripped of his immunity from prosecution in the case.

Prosecuting attorney Marco Antonio Bernal praised the decision.

“I think it is a good thing that in this country, not just former presidents, as in Martinelli’s case, but also ministers, members of congress and anyone who tramples on the dignity of the people of Panama, that they have to be brought to justice for their actions. Enough of the impunity that we’ve seen in this country for decades.”

The detention was ordered after the former leader was found to be in contempt for failing to appear at a court hearing.

Martinelli claims he is the target of persecution by his predecessor, Juan Carlos Varela.