Our products
Bacalao gourmet de Islandia

Cod with Sanfaina: Traditional Catalan Recipe Step by Step

April 3, 2026Maria José Sáez Pastor⏱ 10 min de lectura
Quick Answer: Cod with sanfaina is a Catalan dish that combines golden cod fillets with sanfaina — the Catalan ratatouille made with eggplant, pepper, zucchini, tomato, and onion, slowly confited in olive oil. It is not the same as bacalao a la catalana (with raisins and pine nuts). Total time: 55 minutes. Pure Mediterranean flavor.

What is Catalan sanfaina

Sanfaina (also spelled samfaina) is one of the fundamental preparations in traditional Catalan cuisine. It is the Catalan equivalent of French ratatouille and Manchego pisto, but with its own distinct personality.

It involves a slow and generous sauté of eggplant, red pepper, green pepper, zucchini, tomato, and onion, patiently confited in extra virgin olive oil until the vegetables almost melt together. The result is a juicy, sweet, deeply Mediterranean mixture.

Sanfaina is served as an accompaniment to meats and fish, and the combination with cod is one of the most classic and celebrated. The firm texture of the cod contrasts perfectly with the softness of the confited vegetables.

Mediterranean vegetables cut for sanfaina: eggplant, pepper, zucchini and tomato

In Catalan culinary tradition, sanfaina appeared in 18th-century cookbooks. The "pagesos" (farmers) prepared it with seasonal garden vegetables — especially in summer, when eggplants, peppers, and tomatoes are at their peak.

Difference between cod with sanfaina and bacalao a la catalana

It's important to clarify this because it causes a lot of confusion: they are completely different dishes.

Characteristic Cod with Sanfaina Bacalao a la Catalana
Key ingredients Eggplant, peppers, zucchini, tomato Raisins, pine nuts, tomato, dried pepper
Flavor profile Mediterranean, vegetal, fresh Sweet and sour, medieval, with sweet notes
Origin Catalan rural cuisine Medieval/Arabic influence
Season Summer (garden vegetables) Year-round (dried fruits and nuts)
Complexity Medium (chopping vegetables + sautéing) Low-medium

If you're interested in bacalao a la catalana with raisins and pine nuts, we have a specific article. Here, we focus on the version with sanfaina — more substantial, more colorful, and perfect for the warmer months.

Ingredients for 4 people

For the sanfaina

  • 2 medium eggplants — the star of the sanfaina. Choose firm and shiny ones.
  • 2 red peppers + 1 green pepper — the red adds sweetness, the green a touch of bitterness.
  • 2 medium zucchinis — cut into thick half-moons so they don't fall apart.
  • 4 large ripe tomatoes (or 400g crushed tomatoes) — the tomato brings everything together.
  • 1 large onion — the base of the sofrito.
  • 4 cloves garlic — sliced.
  • 150ml extra virgin olive oil — generous, as tradition dictates.
  • Sweet paprika, bay leaf, salt, pepper

For the cod

  • 4 thick fillets of desalted cod (~200g each) — with skin, to get it crispy.
  • Flour for dusting (optional)
  • Olive oil for browning

Desalted cod ready for your sanfaina

Thick fillets of Gadus morhua, desalted and ready to cook. No need to wait 36 hours for desalting.

View desalted cod

Step-by-step recipe: cod with sanfaina

Sautéed Mediterranean vegetables in a pan for Catalan sanfaina

Step 1: Prepare the eggplants (15 min prep + 15 min rest)

Cut the eggplants into 2 cm cubes. Place them in a colander, sprinkle generously with salt, and let them rest for 15 minutes. This step is essential: the salt extracts excess moisture and the natural bitterness from the eggplant. After 15 minutes, rinse under the tap and dry thoroughly with paper towels.

Step 2: Chop the rest of the vegetables

While the eggplants are resting:

  • Cut the peppers into thick strips (not too thin, they should maintain their presence)
  • Cut the zucchinis into 1 cm thick half-moons
  • Slice the onion into julienne strips
  • Slice the garlic
  • Grate the tomatoes (the grater is the secret to a perfect Catalan sofrito) or use crushed tomatoes

Step 3: The base sofrito (5 min)

In a large pan or shallow casserole (like a Catalan cassola if you have one), heat 100ml of olive oil over medium heat. Add the onion with the bay leaf. Sauté for 5 minutes, stirring until the onion is transparent and soft. Do not brown it — sanfaina is gentle, not caramelized.

Step 4: The vegetables, in order (20-25 min)

Order matters because each vegetable has different cooking times:

  1. First the peppers (5 min): they take the longest. Stir occasionally.
  2. Then eggplant and zucchini (8-10 min): lower the heat slightly. Stir gently without mashing the cubes.
  3. Finally the tomato and paprika (10-15 min): the tomato needs to cook until it loses its raw acidity. Paprika is added just before the tomato, for 30 seconds to release its aroma without burning.

Key point: the sanfaina should be juicy but not liquid. The vegetables should maintain some shape but be tender, almost confited. If it releases too much liquid, raise the heat slightly for the last few minutes.

Step 5: Cook the cod (5-8 min)

While the sanfaina finishes, in another pan:

  1. Heat oil over medium-high heat
  2. Pat the cod fillets perfectly dry with paper towels
  3. Optional: lightly flour them — this creates a crispy outer crust that contrasts with the sanfaina
  4. Place the fillets skin-side down and cook for 3-4 minutes until the skin is crispy and golden
  5. Flip and cook for 2-3 more minutes — the center should be juicy, slightly translucent

Step 6: Assembly

Serve a generous bed of sanfaina on each plate. Place the cod fillet on top, with the crispy skin facing up. Garnish with fresh chopped parsley and a generous drizzle of extra virgin olive oil uncooked.

Plate of golden cod on Mediterranean vegetables

Tips for a perfect sanfaina

Sanfaina seems simple, but these details make the difference between a good sanfaina and a memorable one:

1. Don't skimp on oil

Sanfaina is a Mediterranean dish that requires generous oil. The vegetables absorb the oil as they confit and return it as flavor. Using too little oil results in a dry, lifeless sanfaina.

2. Low heat always

Sanfaina is not stir-fried — it is confit. Low heat, long time. The vegetables should cook slowly until they release their juices and concentrate. If you turn up the heat, they will brown on the outside but remain raw on the inside.

3. Grate the tomato

Grated tomato (not diced) integrates much better into the sanfaina. It creates a natural sauce that envelops the rest of the vegetables. It is a fundamental Catalan technique — the same one used for pa amb tomàquet.

4. Seasonal vegetables

Sanfaina reaches its peak in July and August, when eggplants, peppers, and tomatoes are in full bloom. A sanfaina made with seasonal vegetables versus greenhouse vegetables is a completely different dish.

5. Don't stir too much

The vegetables should maintain some shape. If you stir constantly, you'll end up with a puree. Stir every 3-4 minutes, gently.

Variations and combinations

Baked Sanfaina

Prepare the sanfaina as usual in a pan. Spread it in an oven-safe dish, place the cod fillets on top, and bake at 200°C for 12-15 minutes. The cod will have crispier skin, and the sanfaina will be slightly gratinéed around the edges. Spectacular.

Sanfaina with escalivada

Instead of sautéing the vegetables, roast them whole in the oven at 200°C for 40-50 minutes. Then peel and cut them. The result is a sanfaina with an intense smoky flavor — a fusion of sanfaina and Catalan escalivada.

With other fish

Sanfaina pairs perfectly with:

  • Hake: a milder option
  • Monkfish: firm and meaty texture
  • Salmon: the fat of the salmon complements the vegetables
  • Shrimp: sauté the shrimp separately and place them over the sanfaina

The combination with cod remains the most classic and the one that works best due to the contrast of textures: the firmness of the cod versus the confited softness of the vegetables.

Sanfaina as a base for other dishes

Sanfaina is incredibly versatile. Besides cod, it serves as an accompaniment to:

  • Fried or poached eggs (perfect vegetarian dish)
  • Roast lamb or chicken
  • Grilled botifarra sausage
  • On country bread toast as a tapa

Storage and batch cooking

Sanfaina is one of the best preparations for batch cooking:

  • Refrigerator: 3-4 days in an airtight container. Flavor improves on the second day.
  • Freezer: up to 3 months. Freeze in individual portions.
  • Reheating: over low heat in a pan with a drizzle of oil. Never in the microwave if you can avoid it — it loses texture.

Practical tip: prepare a large batch of sanfaina on Sunday. During the week, you'll have a ready base to combine with cod, eggs, chicken, or pasta. You'll only need 10 minutes to have dinner ready.

Nutritional value

Cod with sanfaina is a nutritionally complete and balanced dish:

Nutrient (per serving) Approx. amount Contribution
Calories ~420 kcal Moderate
Protein ~35g (from cod) High
Fiber ~8g (from vegetables) High
Omega-3 Rich (from cod) Excellent
Vitamins A, C, E, K Excellent

It's a dish that fits perfectly into the Mediterranean diet: seasonal vegetables, olive oil, white fish. Low in saturated fats and high in essential nutrients.

🛒 Products used in this recipe

Assortment "Canned Treasures"

Selection of the best Spanish preserves

€79.00

View product →

Assortment "Special Preserves"

To discover gourmet preserves

€50.86

View product →

View gourmet preserves →

⭐ 4.9/5 · Cold shipping 24-48h · Since 1990 at Mercat del Ninot

Conclusion

Cod with sanfaina is Catalan cuisine in its purest form: simple ingredients from the garden and the sea, cooked with patience and generous amounts of olive oil. It's a dish that improves with time (sanfaina made yesterday always tastes better), is suitable for any level of cook, and impresses at any table.

The three key points for consistent success:

  1. Low heat for the sanfaina — confit, never sauté
  2. Quality cod with skin — a thick loin that won't fall apart
  3. Don't confuse it with Catalan-style cod — they are different dishes with different ingredients

And remember: the best time for this dish is summer, when garden vegetables are at their sweetest and most aromatic.

The perfect cod for your sanfaina

Thick loins of desalted cod, ready to brown and serve over sanfaina. Intact skin for that irresistible crispiness.

Buy desalted cod

You might also be interested in: Catalan-style cod with raisins and pine nuts · Catalan salad with desalted cod · Esqueixada de bacalao

Frequently asked questions about cod with sanfaina

What exactly is sanfaina?

Sanfaina is the Catalan version of ratatouille. It consists of eggplant, red and green peppers, zucchini, tomato, and onion, slowly sautéed in olive oil. Unlike pisto, eggplant is always the star and is cooked until it reaches an almost confit-like texture.

What is the difference between cod with sanfaina and Catalan-style cod?

They are completely different dishes. Catalan-style cod includes raisins, pine nuts, and tomato — a medieval influence with sweet touches. Cod with sanfaina is cod served over a Catalan ratatouille of confit vegetables. Different flavors, textures, and ingredients.

Can sanfaina be made in advance?

Yes, and it actually improves. Sanfaina gains flavor if prepared the day before. Store it for 3-4 days in the refrigerator or up to 3 months in the freezer. On the day you serve it, you only need to cook the cod — 10 minutes.

What cod is best for sanfaina?

Thick loins of desalted Gadus morhua (cod from Iceland or Norway). You need firm pieces that won't fall apart when cooked. Center cuts with bone also work well and add more gelatin.

Can sanfaina be made without eggplant?

You can, but then it wouldn't be sanfaina — it would be a pisto. Eggplant is the defining ingredient. If you don't like it, cut it very small and confit it until it almost disappears into the mixture.

How long does it take to make cod with sanfaina?

About 55 minutes: 20 for preparation and 35 for cooking. If you use pre-made sanfaina, only 15 minutes to cook the cod and assemble.

Is sanfaina healthy?

Very healthy. Mediterranean vegetables in olive oil: rich in fiber, vitamins A and C, lycopene, and antioxidants. Combined with cod (lean protein + omega-3), it is nutritionally excellent and low in calories.

Can I use salted cod without desalinating it?

No, never. Salted cod without desalinating would ruin the dish and is harmful. Desalting requires 24-36 hours in cold water. The alternative: buy already desalted cod, ready to cook.

What is served with cod with sanfaina?

The classic accompaniment is pa amb tomàquet (bread with tomato). It also goes well with white rice, roasted potatoes, or a green salad. Bread is essential for soaking up the sanfaina sauce.

Can cod with sanfaina be baked?

Yes. Prepare the sanfaina in a pan, spread it in an oven dish, place the loins on top, and bake at 200°C for 12-15 minutes. The cod will have crispier skin, and the sanfaina will be slightly gratinéed.

About the author: Marc González Sáez is the founder of Bacalalo.com, an online store specializing in cod and seafood products since 1990 at the Mercat del Ninot in Barcelona. Over 30 years of selecting and preparing quality cod make him a reference in traditional Catalan and Iberian cod cuisine.

Salted cod

Lo que cierra una receta

Salted cod

El detalle que separa un plato de un buen plato.

Ver selección
Maria José Sáez Pastor

Maria José Sáez Pastor

Kitchen & Sea Recipes

Expert in cooking and seafood recipes. Passionate about Mediterranean cuisine, she develops and adapts traditional and creative recipes with cod, anchovies, seafood, and gourmet preserves.

Know our story →
Product listYou can see the products we have in our store.
Surtido "Pulpo & Bacalao" - envase y embalaje premium
Filetes de anchoa del Cantábrico "00" Premium - detalle del producto
Regular priceFrom 38,90 € Unit price77,80 € / kg
Rating: 4.8 out of 5
Cantabrian Anchovies "0" Gourmet Selection
Default Title
Morro Extra de Bacalao Desalado Limpio (2ud) - 500g - detalle del producto
Regular price 24,97 € Sale price25,95 € Unit price49,94 € / kg
Rating: 5.0 out of 5
Extra Clean Desalted Cod Snouts (2 units) - 500g
-4%
30gr
Caviar Beluga Iraní 000 Calidad Premium - detalle del producto
Regular priceOn Sale from 90,00 €
No reviews
Imperial Iranian Beluga Caviar 00
Up to -42%
Default Title
Lomitos de Bacalao Desalado Limpio (2ud) - 500g - detalle del producto
Regular price 21,45 € Sale price22,95 € Unit price42,90 € / kg
Rating: 5.0 out of 5
Cleaned Desalted Cod Loins (2 units) - 500g
-7%

Related articles