Step 1: Thoroughly wash the potatoes, peel them, and dry them. Cut into 1 cm cubes.
Step 2: Pour the olive oil into a large pan and add the potatoes. Stir, season with a pinch of salt and pepper, and simmer on low heat for about 20 minutes with the lid on, stirring occasionally.
Step 3: Beat the eggs in a bowl.
Step 4: Wash an onion, peel it, and slice it thinly.
Step 5: Heat some oil in another pan and add the onion. Fry until golden brown and caramelized, but not burnt.
Step 6: Add the onion to the bowl with the beaten eggs.
Step 7: Transfer the potatoes to the bowl. Drain the excess oil with a slotted spoon.
Step 8: Let the mixture rest for 15 minutes to allow the flavors to meld.
Step 9: Heat a pan. Once hot enough, pour in the egg, potato, and onion mixture, trying to spread it evenly across the surface.
Step 10: Cook for about 4 minutes on each side.
Step 11: Serve and enjoy!