Preheat oven to 400°F. Spary a 6-cup muffin pan with non-stick cooking spray.
Place 2 slices of ham in each muffin cup, pressing down in the middle to make room for the egg.
Crack one egg into each ham cup.
Bake for 15 minutes or until eggs are cooked according to your preference (soft, medium or hard). Mine baked for 15 minutes and the yolk was cooked all the way through.
Season with salt and pepper to taste.
Garnish with fresh basil, if desired.