Since we basically live indoors these days, sunlight (the historical source mentioned by others) is less viable. There were historical solutions for that- for example, the Inuits who live in the dim far north, bundled in furs:
Vitamins A and D are present in the oils and livers of cold-water fishes and mammals. Vitamin C is obtained through sources such as caribou liver, kelp, whale skin, and seal brain; because these foods are typically eaten raw or frozen, the vitamin C they contain, which would be destroyed by cooking, is instead preserved.
But that doesn't fit into a modern Western diet.