The present disclosure relates to a method for operating a combustion engine. A main amount of gas fuel is fed via a pre-chamber into a main combustion chamber. An ignition quantity of gas fuel is fed into the pre-chamber before the piston reaches the upper dead center to form an air-gas fuel mixture in the pre-chamber, which is fatter than in the main combustion chamber. The air-gas fuel mixture in the pre-chamber ignites itself. The air-gas fuel mixture in the main combustion chamber ignites through the self-ignited air-gas fuel mixture in the pre-chamber.