Wash the spinach thoroughly and remove excess water.
Crack the eggs into a bowl, beat them, and season with salt and pepper.
Heat olive oil in a pan and sauté the chopped onion.
Add the spinach and cook until wilted.
Pour the beaten eggs over the spinach and cook on low heat until the top is set.