An air compressor comprising: a box in which the air compressor and a sealant supply device are accommodated, the air compressor being configured to produce high-pressure airs, and the sealant supply device having an air inlet pipe and a supply pipe which are arranged on a second sub-tube of the sealant supply device; wherein an air outlet pipe of the air compressor is connected with the air inlet pipe of the tire sealant supply device, and the air compressor is detachable from the sealant supply device; wherein the air inlet pipe is configured to receive the high-pressure airs from the air compressor, and the supply pipe is configured to output chemical sealant from the sealant supply device; wherein the sealant supply device comprises a tube, which is configured to communicate the air inlet pipe with the supply pipe, so that the high-pressure airs are outputted out of the supply pipe to inflate a tire; wherein a rotation element is provided, which includes a driven portion arranged on an outer wall thereof, wherein the rotation element is rotatable on the second sub-tube to actuate the tube to stop the air inlet pipe communicating with the supply pipe, the high-pressure airs flowing into a can of the sealant supply device from the air compressor, such that the chemical sealant flows into the supply pipe from the tube and is supplied to a broken tire via a sealant delivery hose; characterized in that a central stem is formed on a center of an inner wall of the rotation element, wherein at least one rail is formed on the inner wall of the rotation element, wherein, for inflating the high-pressure airs to a broken tire, the rotation element is releasably fitted on the second sub-tube, such that the central stem of the rotation element abuts against a top of the tube, wherein a closed notch defined at the top of the tube and the central stem of the rotation element being engaged in the notch of the tube, wherein the rotation element is rotatable downward along the at least one rail to actuate the tube to move downward into the configuration, in which the air compressor inflates the high-pressure airs to a tire and supplies the chemical sealant to the tire, when the tire is broken. a box in which the air compressor and a sealant supply device are accommodated, the air compressor being configured to produce high-pressure airs, and the sealant supply device having an air inlet pipe and a supply pipe which are arranged on a second sub-tube of the sealant supply device; wherein an air outlet pipe of the air compressor is connected with the air inlet pipe of the tire sealant supply device, and the air compressor is detachable from the sealant supply device; wherein the air inlet pipe is configured to receive the high-pressure airs from the air compressor, and the supply pipe is configured to output chemical sealant from the sealant supply device; wherein the sealant supply device comprises a tube, which is configured to communicate the air inlet pipe with the supply pipe, so that the high-pressure airs are outputted out of the supply pipe to inflate a tire; wherein a rotation element is provided, which includes a driven portion arranged on an outer wall thereof, wherein the rotation element is rotatable on the second sub-tube to actuate the tube to stop the air inlet pipe communicating with the supply pipe, the high-pressure airs flowing into a can of the sealant supply device from the air compressor, such that the chemical sealant flows into the supply pipe from the tube and is supplied to a broken tire via a sealant delivery hose; characterized in that a central stem is formed on a center of an inner wall of the rotation element, wherein at least one rail is formed on the inner wall of the rotation element, wherein, for inflating the high-pressure airs to a broken tire, the rotation element is releasably fitted on the second sub-tube, such that the central stem of the rotation element abuts against a top of the tube, wherein a closed notch defined at the top of the tube and the central stem of the rotation element being engaged in the notch of the tube, wherein the rotation element is rotatable downward along the at least one rail to actuate the tube to move downward into the configuration, in which the air compressor inflates the high-pressure airs to a tire and supplies the chemical sealant to the tire, when the tire is broken.