<p>A rotary compressor is provided with a hermetic case (1); a motor section (3) arranged in the hermetic case (1); a compression mechanism section (2) driven by the motor section (3) through a main shaft (20) to eject a compressed gas from an ejection valve (12a) facing the motor section (3); and an upper valve cover (14) fixed to the compression mechanism section (2) with a bolt (16) to cover the ejection valve (12a). The motor section (3) and the compression mechanism section (2) are arranged to face each other with an interval of 2-8mm between the motor section (3) and the bolt (16) of the upper valve cover (14).</p>