In the United States criminal justice system, a competency evaluation is an assessment of the ability of a defendant to understand and rationally participate in a court process. Competency was originally established by the Supreme Court of the United States as the evaluation of a defendant's competence to proceed to trial. In a subsequent ruling, the Court held that any prisoner facing the death penalty must be evaluated as competent to be executed, meaning that he must be capable of understanding why he has received the death penalty and the effect that the penalty will have. In further rulings, competence was also enlarged to include evaluation of the defendant's competence to plead guilty and competence to waive the right to counsel.