Finely chop the potato and onion.
Sauté the potato in a pan, then add the onion and sauté together.
Season with salt and pepper.
Gather the potato sauté in the center of the pan and crack an egg on top.
Cover with a lid and cook on low heat until the egg is set.