The present invention relates to a fertilizer composition comprising ammonium nitrate, of which the potential misuse as a precursor for an explosive is limited on the one hand, without hampering its legitimate use by farmers for food production on the other hand, to a method for the preparation of said fertilizer composition, and to the use thereof. The fertilizer composition comprising ammonium nitrate comprises a non-hygroscopic agent which is able to form a non-hygroscopic fertilizer composition with ammonium nitrate under normal conditions of storage and use, and to form an hygroscopic composition with ammonium nitrate after said fertilizer composition is contacted with water, and optionally a foaming agent. According to one embodiment, the non-hygroscopic agent is selected from the group of non-hygroscopic urea double salts, in particular urea calcium nitrate (UCaN).