Place spinach in a non-stick ovenproof frypan over medium heat with a drizzle of olive oil and allow to wilt slightly.
Add tomatoes, fetta, basil and shallots to the frypan and mix gently together. Drizzle with the olive oil.
Create 4 indentations in the mixture and gently crack an egg in each of the indents. Cover with foil and bake for 15 minutes, or until the egg whites are set and the yolk is cooked to your liking. Season with black pepper to taste, and serve.