Wash the spinach thoroughly and remove excess water.
Finely chop the onion and garlic.
Crack the eggs into a bowl and season with salt and pepper.
Heat olive oil in a pan and sauté the onion and garlic.
Add the spinach and cook until wilted.
Spread the spinach and vegetables evenly and pour in the beaten eggs.
Cover with a lid and cook over low heat.
Add cheese on top and cook until the cheese is melted.
Cut into serving pieces.