Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add chopped tomatoes and season with salt and pepper.
Simmer the sauce on low heat.
Crack the eggs over the sauce.
Cover with a lid and cook until the eggs are set.