The tomato is the edible berry of the plant "Solanum lycopersicum", commonly known as a tomato plant. The species originated in western South America and Central America.

Its domestication and use as a cultivated food may have originated with the indigenous peoples of Mexico. The Aztecs used tomatoes in their cooking at the time of the Spanish conquest of the Aztec Empire, and after the Spanish encountered the tomato for the first time after their contact with the Aztecs, they brought the plant to Europe. From there, the tomato was introduced to other parts of the European-colonized world during the 16th century.

In France, Italy and northern Europe, the tomato was initially grown as an ornamental plant. It was regarded with suspicion as a food because botanists recognized it as a nightshade, a relative of the poisonous belladonna.

A nickname for the fruit was the “poison apple” because it was thought that aristocrats got sick and died after eating them, but the truth of the matter was that wealthy Europeans used pewter plates, which were high in lead content. Because tomatoes are so high in acidity, when placed on this particular tableware, the fruit would leach lead from the plate, resulting in many deaths from lead poisoning. No one made this connection between plate and poison at the time; the tomato was picked as the culprit.

More Info: en.wikipedia.org