Chop the onion and garlic.
Heat olive oil in a pan and sauté the onion and garlic.
Add the chopped tomatoes and simmer.
Season with salt and pepper.
Crack the eggs and place them on top of the sauce.
Cover with a lid and cook until the eggs are done.