The present invention relates to a cosmetic container that selectively opens and closes a space for accommodating cosmetic contents and a space for accommodating a puff through sliding, wherein the cosmetic container slides easily by itself. The cosmetic container according to an embodiment of the present invention comprises: a case unit having a first space for accommodating contents and a second space for accommodating a puff; a sliding unit included in the case unit to selectively open and close the first space and the second space through sliding; a first magnetic member included in the case unit; and a second magnetic member included in the sliding unit to supply additional moving force to the sliding movement of the sliding unit by a magnetic force with the first magnetic member.