QUITO, Ecuador — A court on Wednesday sentenced Vice President Jorge Glas of Ecuador to six years in prison after finding him guilty of receiving bribes from the Brazilian construction company Odebrecht in return for handing it government contracts.

Mr. Glas was a close ally of former President Rafael Correa, serving as his vice president from 2013 and retaining the position under the current president, Lenín Moreno.

Mr. Moreno, who has largely broken from Mr. Correa, suspended Mr. Glas in August, accusing him of not being a team player. In October, a judge ordered that Mr. Glas be placed in pretrial detention as part of the investigation into Odebrecht.

The public prosecutor’s office accused Mr. Glas, 48, of pocketing $13.5 million from Odebrecht through his uncle.