Nasi lemak is Malaysia’s beloved fragrant coconut rice, traditionally wrapped in banana leaves and served with sambal, fried anchovies, peanuts, and cucumber. This nasi lemak cake transforms those familiar flavors into a stunning savory layer cake—each slice reveals fluffy coconut rice layered with spicy sambal, crispy ikan bilis, and roasted peanuts, all topped with a creamy coconut-egg custard. It’s a show-stopping centerpiece that tastes just like the classic, but in a form perfect for celebrations.
Ingredients
- 3 cups (600 g) jasmine rice, rinsed and drained
- 2 cups (480 ml) coconut milk
- 1 ½ cups (360 ml) water
- 2 pandan leaves, knotted (optional but recommended)
- 1 tsp salt
- For the sambal:
- 10 dried red chilies, soaked in hot water until soft
- 5 shallots, peeled
- 3 cloves garlic
- 1 tbsp (15 g) belacan (dried shrimp paste), toasted
- 2 tbsp (30 ml) vegetable oil
- 1 tsp tamarind paste mixed with 3 tbsp (45 ml) water
- 1 tsp sugar, or to taste
- Salt to taste
- 1 cup (50 g) dried anchovies (ikan bilis), fried until crispy
- ½ cup (75 g) roasted peanuts
- For the custard topping:
- 3 large eggs
- 1 cup (240 ml) coconut milk
- 1 tbsp (15 g) all-purpose flour
- ¼ tsp salt
- Banana leaves or parchment paper for lining
Instructions
- Cook the rice: In a rice cooker or heavy pot, combine the rinsed rice, coconut milk, water, pandan leaves, and salt. Cook according to your rice cooker’s setting, or bring to a boil, then reduce heat to low, cover, and simmer for 15–18 minutes until the liquid is absorbed. Let it sit, covered, for 10 minutes, then fluff with a fork. Remove the pandan leaves.
- Make the sambal: Blend the soaked chilies, shallots, garlic, and toasted belacan into a smooth paste using a food processor, adding a little water if needed. Heat the oil in a pan over medium heat and sauté the paste for 8–10 minutes until fragrant and the oil starts to separate. Add the tamarind water, sugar, and salt. Cook for another 5 minutes until thick. Set aside.
- Prepare the cake pan: Line an 8-inch (20 cm) round springform pan with banana leaves or parchment paper, leaving some overhang for easy removal.
- Layer the cake: Press half of the cooked rice firmly into the bottom of the pan. Spread half of the sambal over the rice, then sprinkle with half of the fried anchovies and peanuts. Repeat with the remaining rice, sambal, anchovies, and peanuts, pressing down gently to compact the layers.
- Make the custard: In a bowl, whisk together the eggs, coconut milk, flour, and salt until smooth. Pour this mixture evenly over the top of the cake.
- Bake: Preheat the oven to 350°F (175°C). Place the cake pan on a baking sheet and bake for 30–35 minutes, until the custard is set and lightly golden on top. The internal temperature of the custard should reach 160°F (71°C) as per USDA FSIS safe minimum for egg dishes. Let it cool in the pan for 15 minutes.
- Serve: Carefully remove the cake from the pan, slice into wedges, and serve warm or at room temperature.
Tips
- Substitutions: No pandan leaves? Omit them—the rice will still be fragrant from coconut milk. If you can’t find belacan, use 1 tsp shrimp paste or skip it; the sambal will be less pungent but still tasty.
- Compact the layers: Press each rice layer firmly with a spatula so the cake holds together when sliced. If the rice is too loose, the cake will crumble.
- Make it ahead: Assemble the cake (without the custard) a day ahead, refrigerate, and pour the custard just before baking. This helps the layers set.
- Common mistake: Overcooking the custard makes it rubbery. Bake just until set—it should wobble slightly in the center when you shake the pan.
Serving Suggestions
Serve the nasi lemak cake as a main dish for brunch or lunch, accompanied by a fresh cucumber salad or sliced cucumbers on the side. It also pairs beautifully with a bowl of clear chicken soup or a simple stir-fried vegetable. For a festive touch, garnish with extra fried anchovies, peanuts, and a sprig of cilantro.
Variations
- Vegetarian: Omit the anchovies and belacan, and add crispy fried tofu or tempeh for protein.
- Spicy level: Reduce the dried chilies to 5 for a milder sambal, or add a fresh chili for extra heat.
- Different protein: Add a layer of cooked, shredded chicken or fried fish floss between the rice layers for extra richness.
- Individual portions: Make mini cakes in ramekins or muffin tins, adjusting the baking time to 20–25 minutes.
Storage and Reheating
Store leftover nasi lemak cake in an airtight container in the refrigerator for up to 4 days. To reheat, place a slice on a microwave-safe plate and heat in 30-second bursts until warm, or wrap in foil and warm in a 300°F (150°C) oven for 10–15 minutes. The cake can also be frozen for up to 2 months—wrap tightly in plastic wrap and foil, thaw overnight in the fridge, and reheat as above.
Frequently Asked Questions
Can I use regular rice instead of jasmine? Yes, but jasmine rice gives the best texture and aroma. Regular long-grain rice will work; just adjust the liquid ratio slightly if needed.
Why is my cake falling apart? This usually happens if the rice is too dry or not pressed firmly enough. Make sure the rice is moist and sticky, and press each layer down well.
Can I make this without a springform pan? Absolutely. Use a regular cake pan lined with parchment paper, leaving enough overhang to lift the cake out. Or serve directly from the pan.
Is the custard topping necessary? It adds richness and helps hold the cake together, but you can skip it for a lighter version. If skipping, reduce baking time to 20 minutes just to warm through.
Can I prepare the sambal in advance? Yes, the sambal can be made up to 3 days ahead and stored in the fridge. Bring it to room temperature before assembling.
What if I don’t have dried anchovies? You can use salted anchovies (rinse and pat dry) or substitute with roasted peanuts and fried shallots for crunch.
Related
- Asian Fish Cakes: Easy Homemade Recipe
- Ayam Rendang Recipe: Rich, Spicy Indonesian Chicken
- Encebollado Ingredients: What’s in Ecuador’s Soup
More recipes to cook
Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes
Spotted an error? Tell us and we will correct it (corrections policy).