In a method of operating a 4-stroke internal combustion engine selectively
in a compression ignition operation, in which an outlet valve of the
internal combustion engine is closed at a comparatively early closing
time point with respect to a crank angle (.alpha.) and in spark ignition
operation, in which the outlet valve is closed at a comparatively late
closing time point with respect to the crank angle (.alpha.), during the
changeover from the spark ignition mode of operation to the compression
ignition mode of operation, the closing time point of the outlet valve is
transferred from the late closing time point to the early closing time
point in steps distributed over multiple 4-stroke cycles.