The invention discloses a rotary compressor, which comprises a crankshaft of the compressor, a compressing structure part, an upper bearing, a lower bearing and a motor driving part, wherein the crankshaft of the compressor is arranged in a casing and is provided with an eccentric part, the compressing structure part is used for compressing coolant gas, the upper bearing and the lower bearing are respectively arranged at the upper side and the lower side of the compressing structure part, the motor driving part is used for driving the compressing structure part, the upper part of the casing is provided with an upper cover, the crankshaft upwards extends, the upper end of the crankshaft is arranged in a bearing arranged under the upper cover, a cylindrical gas-liquid separator is arranged on the crankshaft arranged between the bearing and a rotor, the diameter of the gas-liquid separator is smaller than that of the rotor, at least one exhaust opening is arranged on the outer peripheral surface of the upper part of the casing, and a filter screen is arranged between the exhaust opening and the gas-liquid separator. The rotary compressor of the invention separates small oil drops carried in gaseous coolants through the gas-liquid separator and the filter screen, and reduces the oil outlet quantity of the compressor.