The mechanism of CO oxidation reaction on oxygen-precovered Pt(111) surfaces has been studied by using time-resolved near-edge x-ray absorption fine structure spectroscopy. The whole reaction process is composed of two distinct paths: (1) a reaction of isolated oxygen atoms with adsorbed CO, and (2) a reaction of island-periphery oxygen atoms after the CO saturation. CO coadsorption plays a role to induce the dynamic change in spatial distribution of O atoms, which switches over the two reaction paths. These mechanisms were confirmed by kinetic Monte Carlo simulations. The effect of coadsorbed water in the reaction mechanism was also examined.