A court in Guatemala has sentenced the former leader of Congress to 13 years and four months in prison for trying to bribe a judge to issue a ruling favoring the vice president at the time, who is also accused of corruption.

Gudy Rivera was convicted of bribery and influence trafficking. Former Judge Claudia Escobar accused Rivera of trying to bribe her to block a court order in 2014 removing former Vice President Roxana Baldetti as secretary-general of the Patriot Party, to which Rivera belongs.

Former President Otto Perez Molina and Baldetti resigned last year and have been in custody on charges of permitting and benefiting from an alleged customs graft scheme that defrauded the state of millions of dollars.