To provide a compressor capable of preventing occurrence of rust in the vicinity of a joint part between a casing in which water easily stays and an attaching leg.
The attaching leg 30 has a circular hole 31. The casing 20 has a bottom part 23c to be welded to the attaching leg 30 while being brought into contact with the edge part 31a of the circular hole 31. In the vicinity of a contact portion 25 where the attaching leg 30 and the bottom part 23c are in contact with each other, the attaching leg 30 and the bottom part 23c are welded to each other over the whole periphery on the both sides of an annular part 24a of the side of a compressor central axis cc and an annular part 24b of the side opposite to the annular part 24a while interposing the contact portion 25 therebetween.