A former Costa Rican president who briefly served as chief of the Organization of American States was convicted of corruption charges Wednesday and sentenced to five years in prison.

Capping a yearlong trial, a judge found Miguel Angel Rodriguez guilty of instigating corruption but absolved him of illegal enrichment, citing reasonable doubt. He was also barred from any government jobs for 12 years.