Mental illnesses are conditions that affect mood, thinking, and behavior, and many of these conditions have genetic components. Certain mental disorders like schizophrenia, bipolar disorder, and depression are known to have hereditary links. However, the environment also plays a significant role in shaping mental health outcomes. Understanding how genes and environmental factors interact can help in early identification and management of these conditions.