The discovery of topological states of matter has greatly improved our understanding of phase transitions in physical systems. Instead of being described by local order parameters, topological phases are described by global topological invariants and are therefore robust against perturbations. A prominent example is the two-dimensional (2D) integer quantum Hall effect1: it is characterized by the first Chern number, which manifests in the quantized Hall response that is induced by an external electric field2. Generalizing the quantum Hall effect to four-dimensional (4D) systems leads to the appearance of an additional quantized Hall response, but one that is nonlinear and described by a 4D topological invariant—the second Chern number3,4. Here we report the observation of a bulk response with intrinsic 4D topology and demonstrate its quantization by measuring the associated second Chern number. By implementing a 2D topological charge pump using ultracold bosonic atoms in an angled optical superlattice, we realize a dynamical version of the 4D integer quantum Hall effect5,6. Using a small cloud of atoms as a local probe, we fully characterize the nonlinear response of the system viain situimaging and site-resolved band mapping. Our findings pave the way to experimentally probing higher-dimensional quantum Hall systems, in which additional strongly correlated topological phases, exotic collective excitations and boundary phenomena such as isolated Weyl fermions are predicted4.