International audienceX-ray Absorption Spectroscopy (XAS) was used to study the behavior of krypton as a function of its concentration in UO$_2$ samples implanted with Kr ions. For a 0.5 at.% krypton local concentration, by combining XAS results and DFT + $U$ calculations, we show that without any thermal treatment Kr atoms are mainly incorporated in the UO$_2$ lattice as single atoms inside a neutral bound Schottky defect with O vacancies aligned along the (100) direction (BSD1). A thermal treatment at 1273 K induces the precipitation of dense Kr nano-aggregates, most probably solid at room temperature. In addition, 26 ± 2% of the Kr atoms remain inside BSD1 showing that Kr-BSD1 complex is stable up to this temperature. Consequently , the ...