The invention relates to a hydrogen-doped inlet air and oxygen-enriched gasoline engine with EGR and a combustion control method. The device mainly comprises a gasoline engine, an EGR cooler, an EGR valve, a water electrolysis device, a hydrogen storage, an oxygen storage, a pressure control device, a hydrogen injection device and an oxygen injection device. According to the hydrogen-doped inlet air and oxygen-enriched gasoline engine, in-cylinder combustion modes of four air inlet modes including inlet air doped with hydrogen and oxygen, small-scale exhaust gas recirculation and hydrogen doping, large-scale exhaust gas recirculation and hydrogen doping and oxygen enrichment are respectively adopted in a cold start and idling condition, a medium or small load condition, a large load condition and a full load condition of the engine, so that the effects that the thermal efficiency is obviously improved and the HC and CO discharge is reduced at the cold start and idling stage of the gasoline engine can be achieved; the pumping loss of the engine is greatly reduced in the medium or small load condition, and the oil consumption and NOx discharge are greatly reduced; the engine power is obviously increased within short time when a throttle valve is fully opened. The hydrogen-doped inlet air and oxygen-enriched gasoline engine has excellent overall properties such as low emission, low oil consumption and instantaneous high power output.