Chop the onion and garlic.
Add olive oil to a pan and sauté the garlic and onion.
Add chopped tomatoes, and season with salt and pepper.
Once the sauce thickens, create a space in the center and crack in the eggs.
Cover and cook until the eggs are softly set.