Hydrocarbon streams are hydrogenated catalytically without using a different solvent from the hydrocarbon stream to be hydrogenated, with a basic compound being added to the starting-material stream. The formation of undesired secondary components on the catalyst is thereby effectively prevented.