Vegetable oil is derived from plants and can be used as cooking oil. Although many plant parts may yield oil, in commercial practice, oil is extracted primarily from seeds.