Technically, tomatoes are classified as a fruit because they develop from the ovary of a flower and contain seeds. However, they are often treated as a vegetable in culinary settings.