Brush four ovenproof dishes with olive oil. Place two slices of ham on the edge and two on the bottom.
Carefully beat an egg into each of the molds. Season with salt and pepper. Bake in the preheated oven (200 ° C) for 8-12 minutes, depending on how firm you want the egg to be.