Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the chopped onion and garlic.
Add diced tomatoes and simmer.
Season the tomato sauce with salt and pepper.
Create wells in the sauce and crack the eggs into them.
Cover and cook until the eggs are half-cooked.
Finish by sprinkling parsley or basil.