Two textures, one family
Flan and tres leches look very different on the plate. One is a smooth, wobbling custard under a pool of caramel; the other is a light sponge cake soaked in milk until it is almost pudding. Yet they share the same basic ingredients: milk, eggs and sugar, handled in different ways. Both belong to a wide family of dairy desserts found across Mexico, and understanding the logic of eggs and milk makes the whole family easier to cook and to recognise.
How a baked custard works
A custard sets because egg proteins thicken as they heat. Mixed with milk and sugar and cooked gently, the eggs form a delicate network that holds the liquid in a soft gel. Cook it too fast or too hot, and the network tightens, squeezes out liquid and turns grainy or full of tiny holes. This is why flan is traditionally baked in a water bath, with the mould sitting in hot water so the heat reaches the custard slowly and evenly.
Flan is Spanish in its background, and custards of this kind have a long history in Europe. In Mexico it became a household dessert, and it is served at family meals, in simple restaurants and at large gatherings. Common versions are flavoured with vanilla, which in Mexico often means Mexican vanilla or an extract made from it, and some cooks add a strip of citrus peel or a little cinnamon.
The caramel
Flan is usually made by first cooking sugar in a pan until it becomes an amber liquid, pouring it into the mould, and then adding the custard on top. After baking and chilling, the flan is turned upside down so the caramel runs over it as a sauce. Two details matter. The caramel should stop at a deep amber colour, since it keeps cooking in the hot pan and can turn bitter if pushed too far. And the cooked custard needs a long chill, often several hours or overnight, so it is firm enough to unmould cleanly.
Hot caramel is dangerous. It is far hotter than boiling water and sticks to skin, so it is sensible to handle the pan with dry oven gloves and to keep children away from the stove.
Some cooks use piloncillo sugar for a darker, more molasses-like caramel, though it burns easily and behaves differently from white sugar, and results vary by brand and by how dry the cone is.
Variations on flan
Mexican kitchens make many versions of the same idea:
- Flan napolitano, a richer, denser flan that typically includes cream cheese, and is very common in home cooking and at celebrations.
- Flan de coco, de cajeta, de elote or de queso, in which coconut, caramelised goat’s milk, sweet corn or cheese changes the flavour while the structure stays similar.
- Jericalla, a lightly caramelised baked custard associated with Guadalajara, which is typically served in smaller portions and has a browned top rather than a sauce.
- Natillas and puddings, stirred on the stove rather than baked, with a looser, creamier texture.
Which one a family calls “the” flan varies. There is no single correct recipe.
Tres leches: soaked cake
The name means “three milks”. The cake is a light sponge soaked with a mixture of evaporated milk, sweetened condensed milk and cream or fresh milk, and then chilled and usually topped with whipped cream or meringue. It sits at the soft, wet end of the cake spectrum, which is exactly the appeal.
Its origin is disputed. Versions of milk-soaked cake appear in several Latin American countries, and different places claim it. It is often connected to the wider availability of canned milk products in the twentieth century, but this account is usually told as a likely explanation rather than as proven fact. In Mexico, tres leches is a fixture of birthday parties and large family meals, and bakeries often sell it by the slice or in a tray.
Two things make a good one. The sponge needs enough structure to absorb liquid without collapsing, so cakes with a firm, airy crumb are typically used. And the soaking should be gradual, with the milk poured evenly and given time to sink in. Chilling for several hours helps the texture, and many cooks prefer to make it a day ahead.
Other milk and egg sweets
Custard and soaked cakes are close relatives of a number of other dairy desserts. Rice cooked in milk with cinnamon and sugar is a long-standing family dish. Caramelised milk spreads, cooked slowly until thick, are covered under the history of convent sweets and are used on top of or inside these desserts. Bread puddings also use milk, eggs and syrup, and the Lenten bread capirotada is a regional and seasonal example.
At weddings and large parties, dishes like these are often prepared in bulk because they can be made ahead and served cold, which suits celebration feasts where the cook cannot be at the stove during the meal. Dessert also has its place in the mealtime rhythm of the day, appearing after the main midday meal or with coffee in the afternoon.
Food safety
Because these desserts depend on eggs and milk, safe handling matters:
- Bake custards until they are set, with only a slight wobble in the centre, and avoid serving anything made with raw eggs to young children, older adults, pregnant people or anyone with a weakened immune system.
- Use pasteurised milk and dairy products.
- Chill desserts promptly and keep them refrigerated until serving. Dishes with milk and eggs should not sit out for long in warm weather.
- Discard leftovers that have been left unrefrigerated for many hours.
Choosing and judging
If you are tasting flan, a good one is smooth, with a clean egg-and-vanilla flavour and no tiny holes or watery layer. If you are tasting tres leches, it should be moist throughout without pooling liquid, and not so sweet that the cream and milk flavours vanish. Because there are so many homestyle versions, it is more helpful to look for balance and texture than for a particular set of ingredients.