Ultrafast electron microscopy (UEM) is a pivotal tool for imaging of nanoscale structural dynamics with subparticle resolution on the time scale of atomic motion. Photon-induced near-field electron microscopy (PINEM), a key UEM technique, involves the detection of electrons that have gained energy from a femtosecond optical pulse via photon-electron coupling on nanostructures. PINEM has been applied in various fields of study, from materials science to biological imaging, exploiting the unique spatial, energy, and temporal characteristics of the PINEM electrons gained by interaction with a "single" light pulse. The further potential of photon-gated PINEM electrons in probing ultrafast dynamics of matter and the optical gating of electrons by invoking a "second" optical pulse has previously been proposed and examined theoretically in our group.Here, we experimentally demonstrate this photon-gating technique, and, through diffraction, visualize the phase transition dynamics in vanadium dioxide nanoparticles. With optical gating of PINEM electrons, imaging temporal resolution was improved by a factor of 3 or better, being limited only by the optical pulse widths. This work enables the combination of the high spatial resolution of electron microscopy and the ultrafast temporal response of the optical pulses, which provides a promising approach to attain the resolution of few femtoseconds and attoseconds in UEM.photon-induced near-field electron microscopy | attosecond electron microscopy | optical-gated electron pulse | time-resolved PINEM | photon-electron gating I n ultrafast electron microscopy (UEM) (1-3), electrons generated by photoemission at the cathode of a transmission electron microscope are accelerated down the microscope column to probe the dynamic evolution of a specimen initiated by an ultrafast light pulse. The use of femtosecond lasers to generate the electron probe and excite the specimen has made it possible to achieve temporal resolution on the femtosecond time scale, as determined by the cross-correlation of the optical and electron pulses. One important method in the UEM repertoire is photon-induced near-field electron microscopy (PINEM) (4, 5), in which the dynamic response detected by the electron probe is the pump-induced charge density redistribution in nanoscale specimens (6).Photon-electron coupling is the basic building block of PINEM, which takes place in the presence of nanostructures when the energy-momentum conservation condition is satisfied (4, 5). This coupling leads to inelastic gain/loss of photon quanta by electrons in the electron packet, which can be resolved in the electron energy spectrum (5,7,8). This spectrum consists of discrete peaks, spectrally separated by multiples of the photon energy (nZω), on the higher and lower energy sides of the zero loss peak (ZLP) (4) (Fig. 1). The development of PINEM enables the visualization of the spatiotemporal dielectric response of nanostructures (9), visualization of plasmonic fields (4, 5) and their spatial interferences (10), imag...