Africa → Somalia → Mogadishu
🍰 DESSERT

Xalwo

A dense, glossy, cardamom-scented sweet set with cornstarch and ghee, the centerpiece of every Somali celebration.
Somali · advanced · serves 12
prep 15 min · cook 60 min · plus 1 h hands-off time
~366 cal · 2g protein · 44g carbs · 21g fat · 1g fiber · 34g sugars · 7g sat fat (estimated, per serving)
↓ Jump to Recipe
Dense glossy sweet studded with peanuts
AI-generated illustration
Xalwo (halwa) is the quintessential Somali sweet, a dense, chewy, glistening confection that is the centrepiece of every celebration, from weddings to Eid to the welcoming of guests. Offering xalwo is a gesture of hospitality and joy, and no important occasion is complete without it.
It is made by cooking sugar with cornstarch, , and water over low heat, stirring patiently for a long time until it turns thick, glossy, and stretchy. is essential, and often nutmeg, for colour, and a scatter of peanuts are added for crunch. Cut into small, rich squares, it is intensely sweet and fragrant, a treat that Somalis around the world treasure as a taste of home and togetherness.
Saved recipes and passport stamps are kept on this device. Sign in to keep them across your devices and leave reviews.

Make it yours

✓ Naturally vegetarian and gluten-, egg- and pork-free. No swaps needed.
Toggle a diet and the ingredients rewrite themselves with regional substitutes.
Dietary labels are a cooking guide, not allergen-safety advice. We track dairy, egg, gluten, tree nuts and peanuts (we count coconut as a tree nut, following FDA labeling), fish, and shellfish; we do not screen for sesame, soy, mustard, celery, or sulphites. If you have a food allergy, read the label on every product you use, and note that a kitchen can cross-contaminate in ways a recipe cannot control.

Ingredients

Serves 12
  • 2 cups sugar
  • 1 cup cornstarch
  • 4 cups water
  • 1/2 cup
  • 1 tbsp ground and nutmeg
  • 1/2 tbsp lemon juice
  • 1/2 cup
  • a pinch threads (or a little food colouring)
  • 1/2 cup peanuts

Instructions

  • 1
    Bring the sugar, water and lemon juice to a boil, then stir in the cornstarch slaked smooth in a little cold water with the saffron.
    ✎ Chef’s note
    The lemon juice is not decorative: with the cornstarch it is what sets the texture and keeps the xalwo from going grainy or weeping later.
  • 2
    After about 5 minutes, pour in the oil all at once and stir it through, then keep cooking, uncovered, stirring every few minutes.
  • 3
    About three quarters of the way through, stir in most of the cardamom and nutmeg and from then on stir without stopping.
    ✎ Chef’s note
    The whole thing takes about 45 minutes, or until it reaches 230F (110C). The glossy, stretchy texture only comes with time, so do not rush it or raise the heat.
  • 4
    Brown the ghee separately with the last of the spices, spoon off any excess oil from the xalwo, then stir the browned ghee and the peanuts in right at the end.
    ✎ Chef’s note
    The ghee goes in browned and at the very end, in the last five minutes, not beaten in as it thickens. That is where the buttery aroma comes from, and cooked in early it simply disappears.
  • 5
    Spread into a greased dish, cool about an hour until set, and cut into squares or scoop it out with a spoon.
    ✎ Chef’s note
    Xalwo is a celebration sweet, made for Eid and for weddings, and it is often eaten alongside rooti, the soft Somali flatbread, torn and dipped straight into it.
Somali celebration tradition.

Ratings & reviews

Cooked it? Rate this dish:
No account needed. Sign in to leave a full review with a comment.
Cooked it?
Kept on this device, no account needed. Sign in to leave a review and keep your passport across your devices.
No reviews yet, be the first to cook it.

🌏 While it simmers, know your destination

📍
Mogadishu. Mogadishu turns lunch into bariis iskukaris, rice perfumed with the spice mix xawaash and cooked with goat or camel. Somali cooking shows Indian Ocean trade in cardamom, cumin, and cinnamon, alongside sambusa pastries and banana served beside the rice.
🗺️
Somalia. Pasta is Somali food now. Baasto arrived with Italian colonial rule from the late nineteenth century, took hold hardest in the south that was Italian Somaliland, and was rebuilt around Somali spicing: suugo, the sauce, is tomato cooked down with xawaash and meat, and a banana is served alongside to be chopped in, exactly as it is with rice.
🌍
Africa. Much of what reads as timeless African cooking is younger than the Atlantic crossings. Maize, cassava, groundnut, chilli and tomato all arrived from the Americas after 1500 and pushed older crops aside; millet, sorghum, teff, yam and fonio are the ones that were already here, and the map still shows the join.
The story behind this dish is up top, worth a read while the pot works.

Frequently asked questions

What is Xalwo?

A dense, glossy, cardamom-scented sweet set with cornstarch and ghee, the centerpiece of every Somali celebration.

Where does Xalwo come from?

Xalwo is a Somali dish from Mogadishu, Somalia.

Can Xalwo be made vegan, gluten-free, or dairy-free?

This Xalwo recipe includes substitution suggestions for vegetarian, vegan, gluten-free, dairy-free, nut-free, egg-free, and pork-free versions. Treat the substitutions as a starting guide rather than a guarantee, and see the allergen note below.

Is Xalwo safe for people with food allergies?

Our dietary labels and substitutions are a cooking guide, not medical or allergen-safety advice. We track dairy, egg, gluten, tree nuts and peanuts (we still count coconut as a tree nut to be cautious, although the FDA stopped listing it as one in 2025), fish, and shellfish, but we do not screen for sesame, soy, mustard, celery, or sulphites. If you have a food allergy, always read the label on every product you use, and remember a home or commercial kitchen can cross-contaminate ingredients in ways a recipe cannot control.

How long does Xalwo take to make?

About 2 h 15 min in all: 15 minutes prep and 60 minutes cooking, plus 1 h of hands-off waiting the method needs, serving 12.

Get the Sunday Spin

One dish from somewhere in the world, in your inbox every Sunday. No spam, just dinner inspiration you can cook that day.