A juicio de residencia was a judicial procedure of Castilian law and the Laws of the Indies. It consisted of this: at the termination of a public functionary's term, his performance in office was subject to review, and those with grievances against him were entitled to a hearing. This was largely an automatic procedure, and did not imply prior suspicion of misconduct, although it could provide evidence of corruption.