Chop the onion and garlic.
Heat oil in a pan, then sauté the chopped onion and garlic.
Cut the chicken into small pieces and stir-fry together.
Add the rice and mix well while stir-frying.
Season with soy sauce, salt, and pepper.
Make scrambled eggs and place them on top of the rice.