The invention relates to the technical field of springs, and in particular to a spring structure of a quick-release air gun, comprising a female end, a male end, a locking disk, and an outer cylinder; a ring groove and a clamping hole are arranged on a side wall of the male end; the clamping hole is arranged at the front side of the ring groove, and a plurality of the clamping holes are evenly arranged along the circumference of the male end; two limiting grooves are distributed front and back on the locking disk; rollers are slidably arranged in the limiting grooves along the radial direction of the female end; the outer cylinder is slidably sleeved on the female end front and back; a locking spring is connected between the outer cylinder and the female end; an escape space is arranged on the inner wall of the front end of the outer cylinder; the outer cylinder is moved backward and the locking spring is compressed so that the escape space corresponds to the locking disk, when the male end is inserted into the female end, the male end pushes the roller to the escape space, when the ring groove and the clamping hole of the male end correspond to the roller, the roller in the limiting groove at the front end of the locking disk falls into the ring groove, and the roller in the limiting groove at the rear end of the locking disk falls into the clamping hole, the locking spring releases force to drive the outer cylinder to move forward and reset, and the roller is limited to the ring groove and the clamping hole, so as to realize the axial limitation of the male end and the female end.