Cut the chicken into bite-sized pieces. Prepare the garlic, ginger, and Thai basil.
Heat sesame oil in a large skillet or wok over medium heat.
Add the ginger and garlic. Cook for 1–2 minutes until fragrant.
Add the chicken and cook for 5–7 minutes, turning occasionally until lightly browned.
Pour in the soy sauce and Shaoxing rice wine. Add the brown sugar, black pepper, and red chilies if using.
Stir everything together and bring the sauce to a gentle simmer.
Cover and cook for about 10–12 minutes, or until the chicken is fully cooked and tender.
Remove the lid and simmer for another 3–5 minutes until the sauce becomes thick and glossy.
Turn off the heat and stir in the Thai basil leaves until just wilted.
Serve hot with steamed white rice.