An appeals court on Tuesday overturned the conviction of former Colombian President Álvaro Uribe for bribery and witness tampering for which he had been sentenced to 12 years of house arrest.

Uribe, 73, has denied any wrongdoing. He was sentenced in August following a nearly six-month trial in which prosecutors presented evidence that he attempted to influence witnesses who accused the law-and-order leader of having links to a paramilitary group in the 1990s.

The court on Tuesday said the conviction had “structural deficiencies,” used vague premises and lacked comprehensive analysis. Two of the three judges on the panel voted to overturn the conviction; the third thought it should be upheld.

Uribe, who governed from 2002 to 2010, has called his conviction political persecution, claiming that the judge was biased against him.

Prosecutors and victims can appeal Tuesday’s ruling to Colombia’s Supreme Court. The former president, who was free pending his appeal, watched the proceedings remotely via video link.

The case has energized both Uribe’s supporters and critics, as the latest turn comes amid campaigning for next year's legislative and presidential elections in Colombia. Uribe’s party, Democratic Center, has already said that Uribe will run for senator if his legal situation allows it.

The former president governed with strong support from the United States. Colombia’s current President Gustavo Petro has instead clashed with US President Donald Trump. Uribe is a polarizing figure in Colombia, where many credit him for saving the country from becoming a failed state, while others associate him with human rights violations and the rise of paramilitary groups in the 1990s.

The judge in Uribe’s original trial said she had seen enough evidence to determine that Uribe conspired with a lawyer to coax three imprisoned former paramilitary members into retracting testimony they had provided to Iván Cepeda, a leftist senator who had launched an investigation into Uribe’s alleged ties to a paramilitary group.

AP Video shot by Samuel Sotomayor