Bacon cake, from the Dutch East Indies
The baked kueh lapis is what happened when European baking met the spices of the Indies. The steamed one was there already.
The baked cake was born in the Dutch East Indies, now Indonesia. Its Dutch name, spekkoek, means “bacon cake”, after the stripes, which look like streaky pork belly. The Indonesian name, lapis legit, means roughly “rich, sweet layers”.
It is a colonial hybrid. The idea of a rich batter cooked in successive thin layers under heat is European; the best known example is the German Baumkuchen, built up on a rotating spit. The spices are those the Dutch had come to the Indies for: cinnamon, clove, nutmeg, mace and cardamom. In the kitchens of colonial households, where butter and eggs were used lavishly, the two came together.

The steamed cake
The steamed kueh lapis needs no colonial explanation. Cakes of rice flour, starch, coconut milk and palm sugar, steamed in a tin, are among the oldest sweets of the Malay and Indonesian world. Layering them in colours is a refinement of the same thing.
The southern Chinese have a similar steamed layer cake, and Singapore’s Chinese call the local one jiu ceng gao, nine-layer cake. Nine is said to be a lucky number because it sounds like the word for “long-lasting”.
Three ingredients of the story
A butter and egg batter cooked one thin layer at a time under direct heat.
Cinnamon, clove, nutmeg and cardamom, the spices of the Indies trade.
Steamed rice-flour layer cakes, which lent their name to the newcomer.
To Singapore
Lapis legit came to Singapore with people from Indonesia, among them Chinese Indonesians, for whom it is a festive cake, and it was taken up by Peranakan and Eurasian bakers. It went the other way too: families who left Indonesia for the Netherlands after independence took spekkoek with them, and it is still sold in Dutch shops.
Where it is eaten
For Chinese New Year, Christmas and Eid. Jakarta, Bangka and Pontianak are known for it.
Sold all year by cake shops; a standard New Year gift.
In Indonesian shops and restaurants.
A Malaysian offshoot with bright colours and geometric patterns.