Chop the onion and garlic.
Heat olive oil in a pan and sauté the onion and garlic.
Add chopped tomatoes and season with salt and pepper.
Simmer the sauce until it thickens to the desired consistency.
Crack eggs on top of the sauce.
Cover with a lid and cook until the eggs are soft-boiled.
Finish with parsley or other herbs.