Zirconium carbide (ZrC) is commonly used for energy sector research, as well as a surrogate for the proposed advanced nuclear fuel candidate uranium carbide. This study investigates structural modifications to nanocrystalline and microcrystalline ZrC resulting from dense electronic excitations induced by swift heavy ion exposure. Samples were irradiated with 946 MeV Au ions to various fluences up to 6 × 1013 ions cm−2 and characterized using synchrotron-based x-ray diffraction. The evolution of the unit-cell parameter and heterogeneous microstrain were evaluated as a function of fluence and compared with those of nanocrystalline and microcrystalline CeO2 (a surrogate for UO2 fuel) irradiated under identical conditions. Distinct differences were observed in the radiation responses of the carbide and oxide across both grain sizes. Most notably, microcrystalline ZrC exhibits swelling characterized by two distinct regimes, which does not result in saturation at the ion fluences achieved. This contrasts with CeO2, which exhibits the well-documented direct-impact defect accumulation mechanism, reaching a steady-state saturation of swelling at higher fluences. Nanocrystalline CeO2 undergoes more pronounced swelling compared with microcrystalline CeO2, in contrast to nanocrystalline ZrC, which exhibits only minimal unit-cell changes. These results demonstrate that swift heavy ion-induced structural changes can be quite different in carbides and oxides, which must be considered when extrapolating fission-fragment type damage in current fuels to advanced fuels.