The invention relates to the technical field of main shafts, and discloses an air seal mechanism for the front end of a main shaft. The air seal mechanism comprises a rotor, wherein a dustproof coveris arranged outside the rotor, a waterproof cover is fixed at the front end of the dustproof cover, the rear end of the dustproof cover abuts against a bearing, a bearing seat is arranged on the outerring of the bearing, the front end of the bearing abuts against a bearing pressing plate, the front end of the bearing pressing plate is provided with the dustproof cover, the dustproof cover abuts against an annular spraying plate, the dustproof cover and the annular spraying plate form annular air bags, and the front end of the dustproof cover abuts against the waterproof cover and forms an annular L-shaped gap; when the main shaft is inflated, the compressed air enters the air bags and is at a high pressure, the air bags are at a low pressure, the air flows to the air bags, then the compressed air of the air bags is discharged outside due to the low pressure outside, when the main shaft runs at a high speed, the generated centrifugal pump pressure is outside, the situation that due tothe negative pressure pumped inwards by a centrifugal pump, external cooling water is sucked into the main shaft is effectively prevented, the air seal protection at the front end of the main shaft iseffectively improved, and compared with other modes, the waterproof effect is superior.