01 -
Heat olive oil in a large oven-safe skillet over medium heat. Add onion, jalapeños, and serrano pepper (if using) and sauté for 5 minutes until softened.
02 -
Stir in garlic and cook for 1 minute until fragrant.
03 -
Add drained pinto beans and ranchero sauce to the pan. Season with salt and black pepper. Simmer for 10 minutes to blend the flavours, stirring occasionally.
04 -
Preheat oven to 175°C (350°F). Layer 5 corn tortillas at the base of the skillet or a lightly oiled large baking dish.
05 -
Spread half the bean and sauce mixture over the tortillas, then scatter half the shredded cheese on top.
06 -
Place the remaining 5 tortillas over the cheese, then top with the remaining bean and sauce mixture and the rest of the cheese.
07 -
Use the back of a spoon to create 6 shallow indentations in the top layer.
08 -
Crack one egg into each indentation, spacing them evenly.
09 -
Transfer to the oven and bake for 25–30 minutes, or until egg whites are set but yolks remain slightly runny.
10 -
Remove from oven and garnish with desired toppings such as chili flakes, sliced avocado, fresh herbs, pico de gallo, crumbled cheese, and sour cream. Serve hot.