 Thereafter he began work in the Audiencia of Lima.In 1647 he was named "alcalde" for criminal law, and in 1652 he became an "oidor" (a judge in the Audiencia).He rose to the position of "decano" (president) of the Audiencia.