At redshift z = 2, when the Universe was just three billion years old, half of the most massive galaxies were extremely compact and had already exhausted their fuel for star formation [1][2][3][4] . It is believed that they were formed in intense nuclear starbursts and that they ultimately grew into the most massive local elliptical galaxies seen today, through mergers with minor companions 5,6 , but validating this picture requires higher-resolution observations of their centres than is currently possible. Magnification from gravitational lensing offers an opportunity to resolve the inner regions of galaxies 7 . Here we report an analysis of the stellar populations and kinematics of a lensed z = 2.1478 compact galaxy, which-surprisingly-turns out to be a fast-spinning, rotationally supported disk galaxy. Its stars must have formed in a disk, rather than in a merger-driven nuclear starburst 8 . The galaxy was probably fed by streams of cold gas, which were able to penetrate the hot halo gas until they were cut off by shock heating from the dark matter halo 9 . This result confirms previous indirect indications 10-13 that the first galaxies to cease star formation must have gone through major changes not just in their structure, but also in their kinematics, to evolve into present-day elliptical galaxies.We obtained deep spectroscopy using the XSHOOTER instrument on the Very Large Telescope (VLT) of a compact quiescent galaxy that is gravitationally lensed by the z = 0.588 cluster of galaxies MACS J2129.4−0741 (hereafter MACS2129−1; ref. 14; (Extended Data Fig. 1), and as a consequence appears 4.6 ± 0.2 times brighter and extends over 3″ on the sky. In Fig.1, we show the position of the XSHOOTER slit on a Hubble Space Telescope (HST) colour-composite image and on the reconstructed source plane. The galaxy is stretched along its major axis and we derive a spatially resolved spectrum typical of quiescent z ≈ 2 post-starburst galaxies, with a strong Balmer break and a number of strong absorption features. We fit a spectroscopic redshift of z = 2.1478 ± 0.0006 and constrain the stellar populations through modeling of the rest-frame ultraviolet-to-optical spectrum, the absorption line indices, and the spatially integrated rest-frame ultravioletto-near-infrared (NIR) colours derived from 16-band HST/Infrared Array Camera (IRAC) photometry. The best-fitting spectrum reveals a massive, old, post-starburst Table 1). We derive a velocity dispersion of σ=329±73 km s -1 from absorption lines in the spatially integrated spectrum (Fig. 1) using a penalized pixel fitting method (pPXF) 15 with the best-fitting spectral energy distribution model as a template. Interestingly, the absorption lines are tilted in the twodimensional spectrum. We extract individual rows that represent approximately 0.4-kpc bins along the major axis on the source plane. The central 11 rows have sufficient signal to noise (S/N) to detect absorption lines reliably. We fit each row with the same pPXF implementation used for the spatially integrated spec...