Can we manipulate a photochemical process of molecules by simply engineering their photonic environment? In this Chem Sci, we demonstrated that this is indeed possible. Explicitly, through exact real-time quantum dynamics, we show that the nonadiabatic dynamics of a pyrazine molecule can change significantly when it strongly couples to the vacuum fluctuations of the electromagnetic field confined inside an optical resonator.