A method for operating a solenoid valve (MV), particularly for actuating an electrohydraulic gas-exchange valve control, an injection valve, or an intake or exhaust valve of an internal combustion engine, wherein the solenoid valve (MV) is acted upon in a controlled manner in a cycle including three phases, in which in a pull-up phase, the solenoid valve (MV) is connected for a predefined time duration (T_1) to a first voltage (U_1) of predetermined magnitude for generating a pull-up current, in a holding phase is connected to a second voltage (U_2) of predetermined magnitude for generating a holding current, and in a de-energize phase is separated from both volt ages (U_1, U_2).