Chop the onion and garlic.
Heat olive oil in a pan and sauté the onion and garlic over medium-low heat.
Add chopped tomatoes, chili peppers, salt, and pepper. Simmer for about 10 minutes.
Make wells in the tomato sauce and crack eggs into them.
Cover the pan and cook over medium-low heat until the eggs reach your desired doneness.
Finish by sprinkling parsley or basil on top.