Process for preparing a bifunctional catalyst comprising an acid function constituted by IZM-2 zeolite, a hydrogenating function comprising at least one noble metal from group VIII of the Periodic Table, chosen from platinum and palladium, and a matrix, said process comprising at least the following steps: i) a step of preparing the support for the catalyst by shaping IZM-2 zeolite with a matrix such that the weight percentage of zeolite is advantageously between 1% and 50% relative to the weight of the support, ii) a step of depositing at least one noble metal from group VIII of the Periodic Table by impregnation of the support prepared in step i), enabling a solid to be obtained, with an aqueous solution comprising at least the following compounds: - at least one ammoniacal compound chosen from the platinum tetramine salts of formula Pt(NH 3) 4 2, Pt(NH 3) 4 (NO 3) 2 or Pt(NH 3) 4 X 2, the platinum hexamine salts of formula Pt(NH 3) 6 X 4; the platinum halopentamine salts of formula (PtX(NH 3) 5)X 3; the platinum N-tetrahalodiamine salts of formula PtX 4 (NH 3) 2; and the halogenated compounds of formula H(Pt(acac) 2 X); the palladium salts Pd(NH 3) 4 SO 4 or Pd(NH 3) 4 X 2, wherein X is a halogen chosen from chlorine, fluorine, bromine and iodine, X preferably being chlorine, and "acac" represents the acetylacetonate group (of empirical formula C 5 H 7 O 2), an acetylacetone-derived compound, iii) at least one heat treatment step wherein said solid prepared in step ii) is brought into contact with at least one gas mixture containing oxygen, water, chlorine and/or at least one chlorinated compound, said heat treatment step being carried out between 200°C and 1100°C. i) a step of preparing the support for the catalyst by shaping IZM-2 zeolite with a matrix such that the weight percentage of zeolite is advantageously between 1% and 50% relative to the weight of the support, ii) a step of depositing at least one noble metal from group VIII of the Periodic Table by impregnation of the support prepared in step i), enabling a solid to be obtained, with an aqueous solution comprising at least the following compounds: - at least one ammoniacal compound chosen from the platinum tetramine salts of formula Pt(NH 3) 4 2, Pt(NH 3) 4 (NO 3) 2 or Pt(NH 3) 4 X 2, the platinum hexamine salts of formula Pt(NH 3) 6 X 4; the platinum halopentamine salts of formula (PtX(NH 3) 5)X 3; the platinum N-tetrahalodiamine salts of formula PtX 4 (NH 3) 2; and the halogenated compounds of formula H(Pt(acac) 2 X); the palladium salts Pd(NH 3) 4 SO 4 or Pd(NH 3) 4 X 2, wherein X is a halogen chosen from chlorine, fluorine, bromine and iodine, X preferably being chlorine, and "acac" represents the acetylacetonate group (of empirical formula C 5 H 7 O 2), an acetylacetone-derived compound, - at least one ammoniacal compound chosen from the platinum tetramine salts of formula Pt(NH 3) 4 2, Pt(NH 3) 4 (NO 3) 2 or Pt(NH 3) 4 X 2, the platinum hexamine salts of formula Pt(NH 3) 6 X 4; the platinum halopentamine salts of formula (PtX(NH 3) 5)X 3; the platinum N-tetrahalodiamine salts of formula PtX 4 (NH 3) 2; and the halogenated compounds of formula H(Pt(acac) 2 X); the palladium salts Pd(NH 3) 4 SO 4 or Pd(NH 3) 4 X 2, wherein X is a halogen chosen from chlorine, fluorine, bromine and iodine, X preferably being chlorine, and "acac" represents the acetylacetonate group (of empirical formula C 5 H 7 O 2), an acetylacetone-derived compound, iii) at least one heat treatment step wherein said solid prepared in step ii) is brought into contact with at least one gas mixture containing oxygen, water, chlorine and/or at least one chlorinated compound, said heat treatment step being carried out between 200°C and 1100°C.