A poisonous glycoalkaloid found in many species of the nightshade family Solanaceae, including potato and tomato.