Skip to main content

The Best Vegetables for Vitamin D: A Nutrient-Rich Guide

Discover the best vegetables rich in vitamin D and learn how Moroccan cuisine naturally incorporates these nutrient-dense ingredients into everyday meals.

My grandmother never talked about vitamins. She talked about sunshine and good food. Every morning, she would sit outside on the terrace for at least an hour, drinking her first glass of mint tea in the open air. She cooked with olive oil, she added pumpkin to her couscous, she threw handfuls of spinach into every broth. She was eighty-three years old and her bones were like iron. There is a lesson in that life, even if the word "vitamin D" never once crossed her lips.

Today, vitamin D deficiency is one of the most common nutritional problems in the world — including in sunny countries like Morocco. People spend more time indoors, eat more processed food, and have moved away from the traditional outdoor lifestyle that kept generations before us healthy. So let us talk honestly about what vitamin D is, which vegetables and foods actually help, and how Moroccan cooking — when done the traditional way — has always been ahead of this conversation.

What Vitamin D Actually Does in Your Body

Vitamin D is not just about bones, though yes, it is essential for calcium absorption and bone strength. It also plays a role in your immune system, your mood, muscle function, and even how well your heart works. Low levels of vitamin D have been linked to fatigue, depression, frequent illness, and joint pain.

The body produces vitamin D when sunlight — specifically UVB rays — hits your skin. This is why it is sometimes called the "sunshine vitamin." But here is the thing: you can also get some vitamin D from food, and you can eat other nutrients that help your body absorb and use vitamin D more effectively. That is where vegetables come in, and that is where Moroccan cuisine quietly does something beautiful.

Vitamin D comes in two main dietary forms: D2 (ergocalciferol), found mostly in some plant foods and fungi, and D3 (cholecalciferol), found in fatty fish, egg yolks, and liver. Most vegetables do not contain significant amounts of either. But certain mushrooms, and vegetables rich in magnesium, vitamin K2, and other cofactors, make it possible for your body to absorb and activate the vitamin D it does get — whether from sunlight or food.

The Best Vegetables and Plant Foods for Vitamin D Support

Sun-Exposed Mushrooms

This is the closest thing the plant world has to a true vitamin D source. Mushrooms contain ergosterol, a compound that converts to vitamin D2 when exposed to ultraviolet light. If you place fresh mushrooms gill-side up in direct sunlight for just two hours, they can generate a meaningful amount of vitamin D2 — enough to make a real difference.

In Morocco, we use mushrooms in tagines, couscous, and braised dishes. Button mushrooms, wild forest mushrooms, and the beautiful dried mushrooms from the Atlas mountain markets are all good candidates. Try leaving your fresh mushrooms in the sun before cooking — it costs nothing and adds a nutritional bonus.

Spinach and Dark Leafy Greens

Spinach does not contain vitamin D, but it is loaded with magnesium — a mineral that is absolutely essential for vitamin D metabolism. Without enough magnesium, your body cannot properly convert or use the vitamin D it gets from sunlight or supplements. Spinach also contains vitamin K1, which works alongside vitamin D for bone health.

In Moroccan homes, spinach is everywhere. We add it to lentil soups, mix it into couscous with caramelized onions, wilt it into egg dishes. It is not a "health food" we eat reluctantly — it is just food, cooked properly with garlic and olive oil until it sings.

Swiss Chard (Silq)

Silq, as we call it in Darija, is one of the great underappreciated vegetables of Moroccan cooking. Swiss chard is rich in magnesium, calcium, and vitamin K — all the cofactors that work alongside vitamin D to keep your bones and immune system strong. It also contains antioxidants that reduce inflammation.

My mother used to make a silq tagine with preserved lemon and olive oil that was pure comfort. The bitterness of the chard softened by the salty lemon, the warmth of olive oil — it was simple, cheap, and, as I now understand, genuinely nourishing.

Pumpkin and Winter Squash

Pumpkin is one of the most important vegetables in Moroccan couscous and tagine traditions. It contains beta-carotene, which converts to vitamin A in the body. Vitamin A and vitamin D share receptors and work together in your immune response. Getting enough vitamin A helps vitamin D do its job properly.

Carrots, Turnips, and Root Vegetables

Like pumpkin, carrots are rich in beta-carotene and support vitamin A levels. Turnips contain calcium and some magnesium. In traditional Moroccan couscous, you will find both vegetables layered with chickpeas, onions, and raisins — creating a dish that, nutritionally speaking, covers a remarkable range of needs.

Fortified Foods

In Morocco today, some plant milks, certain breakfast cereals, and some orange juice brands are fortified with vitamin D. These are not traditional, but they are a practical modern addition. Check labels when buying packaged foods — fortification levels vary significantly.

How Moroccan People Historically Got Their Vitamin D

Before we talk recipes, it is worth understanding something: traditional Moroccan life was naturally structured to prevent vitamin D deficiency. People spent hours outdoors — in markets, on farms, in courtyards. The medina architecture, with its open riads and rooftop terraces, encouraged sun exposure. Women who wore more covering clothing would still sit in the sun in private spaces.

The diet played its part too. Olive oil was (and still is) a daily staple. While olive oil itself does not contain vitamin D, it is full of healthy fats that help absorb fat-soluble vitamins including D. Fatty fish — sardines from Agadir, anchovies from Safi — appeared regularly in coastal communities. Eggs were eaten daily. These animal sources provided real vitamin D that the vegetables helped the body process.

The problem today is that modern Moroccans — especially in cities — have lost some of these habits without replacing them. Office work, urban apartments, heavily processed food, and less time in sunlight have created a gap. That is why being intentional about both sun exposure and diet matters more than ever.

A Moroccan Vegetable Tagine for Maximum Nutrient Density

This is not a fancy restaurant tagine. This is the kind of thing you make on a weekday evening when you want something honest and deeply nourishing. It combines several of the vegetables we have discussed — mushrooms, spinach, pumpkin, carrots — with the classic Moroccan flavor base of olive oil, ginger, saffron, and preserved lemon.

Ingredients (serves 4)

  • 300g button mushrooms, left in sunlight for 2 hours before cooking, halved
  • 300g pumpkin, peeled and cut into large chunks
  • 2 medium carrots, cut into thick rounds
  • 2 medium turnips, peeled and quartered
  • 200g fresh spinach or Swiss chard, roughly chopped
  • 1 large onion, finely chopped
  • 3 garlic cloves, minced
  • 1 can chickpeas (400g), drained and rinsed
  • 1 preserved lemon, pulp removed, rind finely sliced
  • 4 tablespoons extra virgin olive oil
  • 1 teaspoon ground ginger
  • 1 teaspoon ground turmeric
  • 1 teaspoon ground cumin
  • 1/2 teaspoon black pepper
  • A pinch of saffron threads, soaked in 2 tablespoons warm water
  • 400ml vegetable broth or water
  • Salt to taste
  • Fresh cilantro for finishing

Method

  1. Warm the olive oil in a heavy-bottomed pot or tagine over medium heat. Add the onion and cook for about 8 minutes, stirring occasionally, until it softens and begins to turn golden at the edges.
  2. Add the garlic, ginger, turmeric, cumin, and black pepper. Stir for one minute until fragrant.
  3. Add the mushrooms and cook for 3 to 4 minutes, letting them release their moisture and begin to brown slightly.
  4. Add the pumpkin, carrots, and turnips. Stir to coat everything in the spiced oil.
  5. Pour in the broth and saffron water. Add the preserved lemon rind and chickpeas. Season with salt.
  6. Cover and simmer on low heat for 25 to 30 minutes, until the root vegetables are completely tender.
  7. In the last 5 minutes, add the spinach or chard and stir gently until wilted.
  8. Taste and adjust salt. Scatter fresh cilantro over the top and serve with warm khobz or over steamed couscous.

Pro Tips for Maximizing Vitamin D from Food and Lifestyle

  • Sun your mushrooms: Place fresh mushrooms gill-side up in direct sunlight for two hours before cooking. Store them dry at room temperature in a paper bag — they continue producing vitamin D even after picking.
  • Eat fat with vitamin D: Vitamin D is fat-soluble. Always pair vitamin D-containing foods with healthy fat. Cooking vegetables in olive oil, adding avocado, or eating mushrooms with eggs and olive oil all improve absorption.
  • Get enough magnesium: Without magnesium, your body cannot activate vitamin D. Eat plenty of spinach, chard, legumes, pumpkin seeds, and nuts. These are all natural parts of Moroccan eating.
  • Go outside: Twenty minutes of midday sun on arms and face, three to four days a week, can be enough for many people. The Moroccan sun is powerful — use it wisely.
  • Consider testing your levels: If you feel chronically fatigued, achy, or low in mood, ask your doctor for a vitamin D blood test. Supplementation is straightforward and inexpensive when levels are genuinely low.
  • Do not rely on vegetables alone: Vegetables support vitamin D metabolism beautifully, but they are not a primary source. Fatty fish (sardines, salmon, mackerel), egg yolks, and liver are the best food sources. Sunlight is the best source of all.

Frequently Asked Questions

Do any vegetables actually contain vitamin D?

Very few. Mushrooms that have been exposed to ultraviolet light are the main plant source of vitamin D2. Most other vegetables do not contain vitamin D directly. What they do contain are cofactors — magnesium, vitamin K, calcium, beta-carotene — that help your body absorb and use vitamin D from sunlight and other food sources.

Is Moroccan food good for vitamin D absorption?

Yes, genuinely. Traditional Moroccan cooking relies heavily on olive oil (which aids fat-soluble vitamin absorption), dark leafy greens like spinach and chard (rich in magnesium and vitamin K), legumes (magnesium and zinc), and root vegetables rich in beta-carotene. When combined with regular sun exposure and some fatty fish, the traditional Moroccan diet creates good conditions for healthy vitamin D levels.

How long should I leave mushrooms in the sun?

Two hours of direct midday sunlight, gill-side up, is enough to significantly increase the vitamin D content of most fresh mushrooms. Studies have shown this simple step can raise vitamin D levels in mushrooms dramatically. The effect lasts even after the mushrooms are dried or cooked at moderate temperatures.

Why are vitamin D deficiency rates high in Morocco if it is such a sunny country?

Ironically, sunny countries often have higher rates of deficiency than expected, because people avoid the sun during the hottest parts of the day, spend more time indoors than previous generations did, cover more skin for cultural or practical reasons, and have shifted toward more processed and less traditional diets. Urban Moroccans are particularly affected. The solution is combining intentional but moderate sun exposure with a diet rich in vitamin D cofactors and actual vitamin D food sources like sardines and eggs.