Prebranac is a traditional Serbian dish of slow-cooked butter beans with caramelised onions, a homemade take on baked beans. If using dried butter beans, they are soaked overnight, drained and simmered with a bay leaf in plenty of water until tender, then drained, keeping the cooking liquid. Jarred or tinned beans can be used instead, keeping their liquid. Onions and garlic are finely sliced. Oil is heated in a large flameproof casserole and the onions are fried slowly until golden and sticky, with a splash of water if they catch. Garlic and sweet paprika go in towards the end. The drained beans are stirred in with some of the cooking liquid, topped up with just-boiled water if needed, and the uncovered casserole bakes, checked a couple of times and given a splash more liquid if it looks dry. It is golden on top, with soft, oozy beans underneath. It is cooled slightly, scattered with chopped parsley and served warm or at room temperature with crusty bread. It serves eight.

Why it works

Frying the onions slowly for a long time caramelises their sugars, so they turn sweet, sticky and deeply flavoured, which is the heart of the dish. Adding the garlic and paprika only at the end stops them burning. Baking the beans uncovered in their cooking liquid lets it reduce and thicken around them, while the top turns golden and crisp. Butter beans hold their shape and turn creamy inside.

Make it easy

Soak dried beans for about 12 hours and simmer for about 1½ hours. Heat the oven to 180°C fan/gas 6. Fry the onions for about 30 minutes, adding the garlic and paprika for the last 10 minutes. Use 750ml of the cooking liquid and bake for 1 to 1½ hours. The beans taste even better reheated the next day. The Food Standards Agency advises reheating leftovers until steaming hot all the way through.

Swaps

Use 500g dried butter beans or 4 x 400g jars or tins. The parsley is optional. For more ideas, see recipes with tinned beans, vegan comfort food and vegetarian recipes from around the world.