The tomato is a plant in the Solanaceae or nightshade family, as are its close cousins tobacco, chili peppers, potato, and eggplant.