Mental illness refers to a wide range of mental health conditions that affect a person's thoughts, emotions, behavior, and overall well-being.