Summary: Ajoarriero is one of those dishes that carries the weight of history in its name. "Ajoarriero" referred to the muleteer who transported goods—including salted cod—along the roads of the Iberian Peninsula before roads or refrigeration existed. These muleteers cooked at the end of each day with what they had in their packs: desalted cod, garlic, oil, and anything else they found at market along the way.
The result was one of the most generous and direct recipes in Spanish cuisine: bacalao al ajoarriero. A preparation that varies by region—Navarre, Castile, Aragon, La Rioja each have their own version—but in all of them shares the same character: honest, hearty, without frills.
At Bacalalo, we have been in Mercat del Ninot in Barcelona since 1990, and shredded cod is one of our most requested products, precisely because of recipes like this. In this guide, we give you the complete recipe, the history behind it, tips for confiting, and the most important regional variations.
Contents
- What is bacalao al ajoarriero
- History of ajoarriero: from the road to the table
- Navarran vs. Castilian version: the differences
- The traditional Navarran recipe: step by step
- Variant: Castilian ajoarriero with tomato
- Variant: ajoarriero without tomato and without choricero (quick version)
- The confit trick: why it matters so much
- Ajoarriero accompaniments and presentations
What is bacalao al ajoarriero
Bacalao al ajoarriero is a preparation of desalted shredded cod cooked with garlic, olive oil, and, depending on the version, peppers (choricero or seasonal), tomato, and/or chili.
The defining characteristic of ajoarriero is not a specific ingredient but the technique: the cod is finely shredded and incorporated into a garlic and pepper sofrito (or directly into flavored oil) in such a way that the mixture lightly emulsifies, the oil and the collagen from the cod integrate, and the result is a juicy, creamy, and deeply flavored blend.
It is, in essence, the most democratic cod dish: it uses cod flakes and scraps, the most accessible ingredients, and transforms them into a dish with an unmistakable personality.
History of ajoarriero: from the road to the table
The muleteer and his cod
Muleteers were the transporters of the Middle Ages and early modern Spain: they drove teams of mules loaded with goods along the kingdom's roads for days or weeks. Salted cod was one of the most frequent goods in those packs: heavy, resistant, and did not spoil on the journey.
The muleteers of Navarre and Aragon, who crossed the Pyrenees or traveled the Camino de Santiago, had access to both cod and the garlic and oil from the lands they traversed. The ajoarriero recipe was born from this combination of availability and necessity: shred the cod, sauté the garlic in oil, mix, cook, and eat.
The cod route on the Peninsula
Salted cod mainly reached the Iberian Peninsula via two routes:
- Atlantic route: through the Basque ports (Bilbao, San Sebastián) and the route towards Castile and Aragon
- Mediterranean route: through the Catalan ports (Barcelona, Tarragona) and the route inland
Navarre was at the crossroads of both routes, which explains why Navarran ajoarriero is the most historically documented and recognized version.
Navarran vs. Castilian version: the differences
Bacalao al ajoarriero has two major traditions:
Navarran version (with choricero pepper, without tomato)
The Navarran version—the oldest—uses dried choricero pepper as an aromatic and coloring base. It does not contain tomato. The result is darker, more concentrated, with a dried pepper flavor that is perfectly Navarran.
Distinctive ingredients:- Hydrated dried choricero peppers
- Plenty of garlic
- Olive oil
- Optional chili pepper
- No tomato
Castilian-La Mancha version (with tomato)
The version from the center of the Peninsula incorporates tomato, which provides acidity and juiciness. It is more colorful, fresher on the palate. Tomato arrived in Spanish cuisine much later than cod, which explains why it is a more recent version.
Distinctive ingredients:- Ripe tomato or canned crushed tomato
- Garlic and onion
- Fresh green or red peppers
- Olive oil
- Occasionally, chopped hard-boiled egg
Aragonese and Riojan version
Aragon and La Rioja have their own variants that combine elements from the two previous versions. Aragonese ajoarriero may include roasted piquillo peppers; Riojan sometimes adds pickled peppers.
Related Bacalalo Products
Recommended Products
Natural Cod Liver Foie Gras - 120g | Smoked Cod L...
€3.90
CHATKA Wild King Crab 60% Legs 40% Shredded | L...
€95.00
Smoked Cod Carpaccio Hand-Cut | 1 Tray Pack
€15.90
Dried Cod Cheeks (1 tray) - 500g
€19.95
Refrigerated delivery 24-48h to the entire Peninsula
The traditional Navarran recipe: step by step
Ingredients (4 servings)
- 500 g desalted shredded cod (or already desalted cod flakes)
- 4 dried choricero peppers
- 6 cloves garlic
- 150 ml extra virgin olive oil
- 2 dried chili peppers (optional, to taste)
- Fresh parsley
- Salt (with caution: cod already has residual salt)
Preparation
Step 1 - Prepare the choricero peppers: Hydrate the choricero peppers in hot water for 30 minutes. When soft, cut them in half and scrape out the flesh with a spoon. Discard the skin and seeds. Reserve the flesh.
Step 2 - Check the cod: If you bought already desalted cod, simply drain it well and pat dry with kitchen paper. If starting with salted cod, desalt it 24-36 hours in advance, changing the water every 8 hours.
Step 3 - Sauté the garlic: Heat the oil in a shallow casserole or large pan over very low heat. Add the sliced garlic and the chili pepper (if using). The goal is for the garlic to confit slowly, without burning, at a temperature of about 60-70°C. This takes 8-10 minutes.
Step 4 - The confit trick: Confit garlic (not fried) is one of the secrets to quality ajoarriero. Fried garlic has a more aggressive and bitter taste; confit garlic is sweet, smooth, and integrates perfectly with the cod. Low temperature, patience, and don't let the oil smoke.
Step 5 - Add the choricero pepper flesh: Incorporate the pulp of the choricero peppers into the oil flavored with garlic. Mix well and cook for 2-3 more minutes for the flavors to meld.
Step 6 - The cod: Add the shredded cod. Mix carefully with a wooden spoon or spatula, without mashing the cod too much: you want it to integrate with the sauce but retain some texture.
Step 7 - Emulsification: This is the key moment. Over low heat, move the pot with gentle circular motions. The collagen from the cod and the oil will begin to emulsify. The mixture should become creamy, almost like a paste. If it's too dry, add a little of the water used to hydrate the choricero peppers.
Step 8 - Season and serve: Taste before adding salt (the cod has residual salt). Serve with chopped parsley and, if desired, with a fried egg on top.
Shredded cod for ajoarriero at Bacalalo: cod flakes from the North Atlantic, Gadus morhua, already desalted and ready to cook. The ideal product for a perfect ajoarriero. See shredded cod in our store
Variant: Castilian ajoarriero with tomato
Ingredients (4 servings)
- 500 g desalted cod flakes
- 3 large ripe tomatoes (or 400g natural crushed tomatoes)
- 4 cloves garlic
- 1 medium onion
- 1 green bell pepper and 1 red bell pepper
- 150 ml extra virgin olive oil
- 1 teaspoon sweet paprika
- Parsley, salt
Preparation
Step 1: Sauté the onion in oil over low heat for 10 minutes until translucent.
Step 2: Add the sliced garlic and diced peppers. Cook for 10 more minutes.
Step 3: Add the grated or crushed tomato. Cook the sofrito over low heat for 20 minutes, stirring occasionally, until the tomato has lost almost all its water and the sofrito is well concentrated.
Step 4: Incorporate the paprika off the heat (to prevent it from burning). Mix.
Step 5: Add the shredded cod. Mix carefully and cook over low heat for 10 more minutes.
Step 6: The cod should be perfectly integrated with the sofrito. Taste for salt, add parsley, and serve.
Variant: ajoarriero without tomato and without choricero (quick version)
The fastest and most direct version of ajoarriero: just cod, garlic, and oil. The pure essence of the recipe.
Ingredients (2 servings)
- 300 g desalted cod flakes
- 5 cloves garlic
- 100 ml extra virgin olive oil
- 1 dried chili pepper
- Parsley
Preparation
- Confit the sliced garlic and chili pepper in the oil over very low heat for 10 minutes.
- Add the cod. Mix gently.
- Move the pot with circular motions for 5-7 minutes over minimum heat.
- The result should be a smooth, glossy, golden paste, served on toasted bread or with a fried egg.
This minimalist version of ajoarriero is possibly the closest to what real muleteers ate.
The confit trick: why it matters so much
Confit garlic is the differentiator between good and excellent ajoarriero. Let's understand why:
Fried garlic (incorrect method for ajoarriero)
Garlic fried at high temperatures (over 150°C) develops intense aromatic compounds and, if overcooked by a second, bitter ones. The result is an aggressive-tasting garlic that dominates the dish and doesn't allow the cod to express itself.
Confit garlic (correct method)
Garlic confited at low temperatures (60-80°C in oil) undergoes a different transformation: the natural sugars in the garlic gently caramelize, the sulfuric compounds that give it an aggressive flavor transform into milder compounds, and the result is sweet, smooth, almost honeyed garlic.
Confit garlic is the base of many of the best cod recipes: pil-pil, Basque bacalao al pilpil, brandada, and ajoarriero all benefit from this technique.
Thermometer for confiting
If you have a kitchen thermometer, use it: the oil for confiting should not exceed 85°C. If you don't have a thermometer, the visual cue is that the garlic starts to release small bubbles, but the oil doesn't smoke, and the garlic doesn't brown. Low heat, with patience.
Ajoarriero accompaniments and presentations
Classic Navarran presentation
Served directly in an earthenware pot. With rustic bread for dipping and a glass of Navarran red wine. Nothing more.
Ajoarriero on toast or regaña
One of the most elegant presentations: ajoarriero spread on a slice of toasted bread or a regaña (crispy savory cracker from Andalusia). Perfect as a tapa or appetizer.
Ajoarriero with egg
In Navarre and Aragon, it is common to add an egg to the ajoarriero at the end of cooking: either a fried egg on top or beaten into the pot in the last few minutes (scrambled style). The egg softens and enriches the dish.
Ajoarriero as a filling
Ajoarriero works perfectly as a filling for roasted piquillo peppers, puff pastry vol-au-vents, or hollowed-out potatoes. In these more elaborate presentations, the contrast between container and filling works very well.
Ajoarriero with potato
A variant from northern Castile adds cooked potato to the ajoarriero, creating a heartier dish. The potato absorbs the flavors of the cod and oil.
Frequently asked questions about bacalao al ajoarriero
1. What exactly is ajoarriero?
A preparation of desalted shredded cod cooked with garlic, oil, and peppers (choricero, fresh, or tomato, depending on the regional version). The name refers to the muleteers who cooked it on the road.2. What is the difference between Navarran and Castilian ajoarriero?
The Navarran version uses dried choricero pepper and no tomato. The Castilian version incorporates tomato, onion, and fresh peppers. The Navarran is more concentrated and intense; the Castilian is fresher and more acidic.3. Can ajoarriero be made with fresh cod?
It is not the traditional dish, but a version can be made with fresh shredded cod. The flavor will be completely different: milder, without the depth provided by salt curing.4. How much shredded cod do I need per person?
For a main course, 120-150g of desalted flakes per person. For a tapa, 50-70g.5. Why shouldn't the garlic in ajoarriero be fried?
Garlic fried at high temperatures develops bitter and aggressive flavors that dominate the dish. Garlic confited at low temperatures is sweet and smooth, allowing the cod to be the protagonist.6. Can I use pre-desalted cod from the supermarket for ajoarriero?
Yes. Ajoarriero is a recipe where quality differences in cod are less critical than in a pil-pil. However, better quality cod will yield more gelatin and a creamier emulsion.7. How long does ajoarriero last in the fridge?
Ajoarriero lasts 2-3 days in the fridge in a covered container. Reheat over very low heat with a little oil or water to prevent it from drying out.8. Can ajoarriero be frozen?
Yes, although the texture may vary slightly after thawing. Freeze in individual portions.9. What wine pairs well with ajoarriero?
A Navarran rosé or young red for the Navarran version (a pure tribute to its origin). A characterful white (Rioja white, Godello) for the Castilian version with tomato.10. Does ajoarriero include potato?
In the most common version, no, but in some variants from Castile and Navarre, cooked or fried diced potato is added.Conclusion
Bacalao al ajoarriero is proof that the most honest and flavorful cuisine doesn't need exotic ingredients or complicated techniques: it needs good product, patience, and respect for the process.
The medieval muleteers who cooked this dish at the end of a day's journey didn't have thermometers or designer pots. They had good cod, olive oil, garlic, and the time it takes to confit the garlic. That was enough.
Shredded cod is the ideal format for ajoarriero: economical, easy to handle, and perfect for integrating with the sofrito. At Bacalalo, we have it in its best version: Gadus morhua from the North Atlantic, artisanally desalted, ready to cook.
Buy desalted shredded cod at Bacalalo — perfect for ajoarriero, croquettes, and brandada
Discover more
