We perform frequency-and time-resolved all-optical switching of a GaAs-AlAs micropillar cavity using an ultrafast pump-probe setup. The switching is achieved by two-photon excitation of free carriers. We track the cavity resonances in time with a high frequency resolution. The pillar modes exhibit simultaneous frequency shifts, albeit with markedly different maximum switching amplitudes and relaxation dynamics. These differences stem from the non-uniformity of the free carrier density in the micropillar, and are well understood by taking into account the spatial distribution of injected free carriers, their spatial diffusion and surface recombination at micropillar sidewalls.Micropillar cavities are versatile solid-state nanophotonic structures that locally enhance the light-matter interaction due to their high quality-factors and small mode volumes.1-3 Moreover, they provide a clean freespace optical interface with nearly perfect in-and outcoupling efficiency. These qualities have stimulated the successful application of micropillar cavities with embedded quantum dot emitters as efficient single photon sources 4-6 and diode lasers 7 , and for observing cavity QED strong coupling. 8,9 In all these realizations, however, the cavity resonance is stationary in time, certainly during relevant interaction times such as an emitter lifetime. To give micropillar cavities new functionality, we propose to bring micropillars into a new dynamic regime where the cavity resonance is switched on a timescale faster than the emitter lifetime.10,11 To this aim we have studied the ultrafast dynamics of all-optically switched micropillar cavities.Micropillar cavities support multiple transverse localized modes with distinct mode profiles. We identify multiple transverse resonances of simple micropillar cavities and perform frequency and time-resolved switching of the resonances via all-optical excitation of free carriers. Compared to previous switching experiments on micropillars 12 , we here study the temporal dynamics of several resonances. The different transverse modes in the micropillar cavity shift in frequency by different magnitudes and show different switching dynamics, pointing to a very significant role of the inhomogeneous spatial distribution of the free carriers in the micropillar.The micropillar cavities as shown in Fig. 1(a