The formation of a primordial crust is a critical step in the evolution of terrestrial planets but the timing of this process is poorly understood. The mineral zircon is a powerful tool for constraining crust formation because it can be accurately dated with the uranium-to-lead (U–Pb) isotopic decay system and is resistant to subsequent alteration. Moreover, given the high concentration of hafnium in zircon, the lutetium-to-hafnium (176Lu–176Hf) isotopic decay system can be used to determine the nature and formation timescale of its source reservoir (1,2,3) Ancient igneous zircons with crystallization ages of around 4,430 million years (Myr) have been reported in Martian meteorites that are believed to represent regolith breccias from the southern highlands of Mars (4,5) These zircons are present in evolved lithologies interpreted to reflect re-melted primary Martian crust4, thereby potentially providing insight into early crustal evolution on Mars. Here, we report concomitant high-precision U–Pb ages and Hf-isotope compositions of ancient zircons from the NWA 7034 Martian regolith breccia. Seven zircons with mostly concordant U–Pb ages define 207Pb/206Pb dates ranging from 4,476.3 ± 0.9 Myr ago to 4,429.7 ± 1.0 Myr ago, including the oldest directly dated material from Mars. All zircons record unradiogenic initial Hf-isotope compositions inherited from an enriched, andesitic-like crust extracted from a primitive mantle no later than 4,547 Myr ago. Thus, a primordial crust existed on Mars by this time and survived for around 100 Myr before it was reworked, possibly by impacts (4,5) to produce magmas from which the zircons crystallized. Given that formation of a stable primordial crust is the end product of planetary differentiation, our data require that the accretion, core formation and magma ocean crystallization on Mars were completed less than 20 Myr after the formation of the Solar System. These timescales support models that suggest extremely rapid magma ocean crystallization leading to a gravitationally unstable stratified mantle, which subsequently overturns, resulting in decompression melting of rising cumulates and production of a primordial basaltic to andesitic crust (6,7).