Solanine is a glycoalkaloid poison found in species of the nightshade family, particularly in potatoes, tomatoes, and eggplants. This compound serves a biological function in plants, acting as a natural defense mechanism against pests and pathogens. However, its presence in food crops can pose a risk to human health.