Cut the onion and ham into bite-sized pieces.
Add cooking oil to a preheated pan.
Sauté the onion first to bring out its aroma.
Add the ham and stir-fry together.
Add the rice and mix well with the ingredients while stir-frying.
Taste and season with salt and pepper.
Serve on a plate to finish.