A process for the hydrogenation of at least one polyunsaturated compound containing at least 2 carbon atoms per molecule, such as diolefins and/or acetylenics and/or aromatic or polyaromatic compounds, contained in a hydrocarbon feedstock having a final boiling point of less than or equal to 650° C., which process being carried out at a temperature of between 0 and 350° C., at a pressure of between 0.1 and 20 MPa, at a hydrogen/(compound to be hydrogenated) molar ratio between 0.1 and 1000 and at an hourly space velocity HSV of between 0.05 and 40 000 h−1 in the presence of a catalyst comprising a porous support and an active phase comprising at least one group VIII metal, said active phase not comprising a group VIB metal, said catalyst being prepared according to at least the following steps:
- a) at least one organic compound containing oxygen and/or nitrogen, but not comprising sulfur, is added to the porous support;
- b) a step of bringing said porous support into contact with at least one solution containing at least one salt of a precursor of the phase comprising at least one group VIII metal is carried out;
- c) the porous support obtained at the end of step b) is dried;
- characterized in that step a) is carried out before or after steps b) and c) and is carried out by bringing together said porous support and said organic compound under conditions of temperature, pressure and duration such that a fraction of said organic compound is transferred in the gaseous state to the porous support.