Competence to stand trial refers to a legal determination that an individual has the mental capacity to understand the charges against them and can participate effectively in their own defense. This concept is crucial in ensuring that individuals are treated fairly within the legal system, as it guards against trying those who cannot comprehend the proceedings or assist in their defense due to mental incapacity.