Sofrito

Spain's foundational garlic and tomato base: the aromatic building block beneath centuries of Mediterranean and Latin American cooking

Origin: Catalonia and Castile, Spain

From the journey of Garlic.

Sofrito, from the Spanish verb sofreír, 'to lightly fry', is less a recipe than a technique, a culinary category, and the invisible architecture beneath the surface of more dishes than can easily be counted. It is the flavour foundation upon which virtually all of Spanish cooking is built, and which Spanish and Portuguese colonisers carried to the Americas, where it multiplied into dozens of regional variants and became equally foundational to Latin American, Caribbean, and Brazilian cuisines. At its core, sofrito is the act of slowly frying aromatics, garlic, onion, and tomato, in olive oil until they collapse, caramelise, and merge into a sweet, concentrated paste of extraordinary depth. The sequence matters: garlic first, then onion, then tomato (in the Catalan version) or tomato and onion together (in the Castilian). The sofregit (Catalan spelling) can take 40 minutes to an hour over the lowest possible heat; not a hurried fry but a slow, patient extraction of flavour. The result is a brick-red paste that flavours everything added to it with a foundational sweetness and depth that no amount of added seasoning later in cooking can replicate. The origins of sofrito trace to Arab-influenced Catalan cooking of the medieval period, where the technique of building a long-cooked aromatic base in oil was already established. Its oldest written reference appears in the Llibre de Sent Soví (c. 1324), the earliest Catalan cookbook, as a standard component of court cooking. What changed after 1492 was the addition of the tomato, which arrived from the Americas via the returning Spanish fleets and transformed the colour, flavour, and character of sofrito from a pale onion-garlic base into the vivid red preparation recognised worldwide today. In the Spanish Caribbean, sofrito evolved into recao (with culantro, ajíes caballeros, and sweet peppers added to the garlic and onion) and became the defining flavour of Puerto Rican and Dominican cooking. In Brazil it became the refogado, anchored by garlic and onion. In Cuba it incorporated cumin and bay. Each version is locally specific, but all trace the same direct line back to the Catalan and Castilian kitchen.

Ingredients

  • 6 tbsp good olive oil
  • 8 garlic cloves, finely minced or grated to a paste
  • 2 large onions, finely diced
  • 6 ripe tomatoes, grated on the coarse side of a box grater (skin discarded), or 400g tin whole peeled tomatoes, crushed by hand
  • 1 tsp sweet paprika (pimentón dulce)
  • 1 tsp salt
  • 0.5 tsp sugar (only if tomatoes are acidic, taste first)

Method

  1. Heat the olive oil in a wide, heavy pan over medium-low heat. Add the garlic and cook gently, stirring, for 2–3 minutes until softened and fragrant but not coloured. Garlic that browns at this stage will make the sofrito bitter.
  2. Add the diced onion to the pan. Cook over low heat, stirring occasionally, for 20–25 minutes until completely softened, translucent, and beginning to turn a pale gold. Do not rush this stage; the onion must cook down fully.
  3. Add the grated or crushed tomato and the sweet paprika. Stir well to combine. Cook over medium-low heat, stirring regularly, for a further 15–20 minutes until the tomato has lost most of its moisture, the mixture has turned a deep brick-red, and the oil has separated slightly around the edges of the pan; this separation signals that the water has evaporated and the sofrito is concentrated.
  4. Taste and adjust salt and sweetness. The sofrito should be sweet, deeply savoury, slightly smoky from the paprika, and rich. Remove from heat.

Notes

Sofrito freezes perfectly in ice cube trays; freeze in 2-tablespoon portions and transfer to a freezer bag. This is the most practical approach for a home cook: make a large batch, freeze in portions, and drop a cube directly into any pan when building a dish. A good sofrito reduces cooking time for stews, rice dishes, and braises by providing instant depth. The Catalan version adds a handful of finely chopped flat-leaf parsley at the end, off the heat. The Puerto Rican version (sofrito or recao) adds fresh culantro, sweet ají peppers, and sometimes a small amount of cumin: an evolution that reflects the specific flavours of the Caribbean kitchen.

The Gastrographer

The Gastrographer

Mapping Culinary History

To explore — select an ingredient below.

Journey Point Map Key

Ingredient originTrade or transit route
Became a culinary stapleColonial / trade control
© 2026 The Gastrographer. All original research, narratives, and illustrations. All rights reserved.