A rotary compressor comprising: a closed casing comprising an oil reservoir; a cylinder disposed inside the closed casing; a piston disposed inside the cylinder; a bearing member attached to the cylinder so as to form a cylinder chamber between the cylinder and the piston; a vane that partitions the cylinder chamber into a suction chamber and a discharge chamber; a suction port through which a refrigerant to be compressed is introduced into the suction chamber; a discharge port through which the compressed refrigerant is discharged from the discharge chamber, the discharge port being formed in the bearing member; and a partition member attached to the bearing member so as to form, together with the bearing member, a refrigerant discharge space capable of retaining the refrigerant discharged from the discharge chamber through the discharge port, characterized in that the partition member or another member is attached to the bearing member so as to form a space enclosed by the partition member and the bearing member or a space enclosed by the another member and the bearing member at a position adjacent to the bearing member, a portion of an oil stored in the oil reservoir flows into the enclosed space, and thereby an oil retaining portion is formed, and the oil retaining portion is located on the same side as the suction port with respect to a reference plane (H 1), the reference plane (H 1) being a plane including a central axis of the cylinder and a center of the vane when the vane protrudes maximally toward the central axis of the cylinder, wherein the another member is an oil cup that covers the bearing member so as to form the oil retaining portion. a closed casing comprising an oil reservoir; a cylinder disposed inside the closed casing; a piston disposed inside the cylinder; a bearing member attached to the cylinder so as to form a cylinder chamber between the cylinder and the piston; a vane that partitions the cylinder chamber into a suction chamber and a discharge chamber; a suction port through which a refrigerant to be compressed is introduced into the suction chamber; a discharge port through which the compressed refrigerant is discharged from the discharge chamber, the discharge port being formed in the bearing member; and a partition member attached to the bearing member so as to form, together with the bearing member, a refrigerant discharge space capable of retaining the refrigerant discharged from the discharge chamber through the discharge port, characterized in that the partition member or another member is attached to the bearing member so as to form a space enclosed by the partition member and the bearing member or a space enclosed by the another member and the bearing member at a position adjacent to the bearing member, a portion of an oil stored in the oil reservoir flows into the enclosed space, and thereby an oil retaining portion is formed, and the oil retaining portion is located on the same side as the suction port with respect to a reference plane (H 1), the reference plane (H 1) being a plane including a central axis of the cylinder and a center of the vane when the vane protrudes maximally toward the central axis of the cylinder, wherein the another member is an oil cup that covers the bearing member so as to form the oil retaining portion.