A clothes treating apparatus comprising: a cabinet that includes a clothing storage chamber; a door configured to open or close the clothing storage chamber; and a heat pump configured to transfer air to the clothing storage chamber, and the heat pump being separably mounted at the cabinet, wherein the heat pump includes: an evaporator, a compressor, a condenser and an expansion apparatus configured to form a refrigerant compression cycle; a heat pump controller configured to control operation of the heat pump according to a plurality of operation modes; and a case provided with the evaporator, the compressor, the condenser, the expansion apparatus, and the heat pump controller, characterized in that the plurality of operation modes comprise: a drying mode configured to control operation of the heat pump when the heat pump is provided in the cabinet; and a dehumidification mode configured to control operation of the heat pump when the heat pump is separated from the cabinet, wherein the heat pump further includes a control panel, provided at the case, to receive a control command and to provide the control command to the heat pump controller, wherein the clothes treating apparatus further comprises a control panel installed at the cabinet and electrically connected to the control panel, wherein the heat pump controller receives a control command from the control panel installed at the cabinet when the heat pump is mounted on the cabinet, and wherein the heat pump controller receives a control command from the control panel when the heat pump is separated from the cabinet. a cabinet that includes a clothing storage chamber; a door configured to open or close the clothing storage chamber; and a heat pump configured to transfer air to the clothing storage chamber, and the heat pump being separably mounted at the cabinet, wherein the heat pump includes: an evaporator, a compressor, a condenser and an expansion apparatus configured to form a refrigerant compression cycle; a heat pump controller configured to control operation of the heat pump according to a plurality of operation modes; and a case provided with the evaporator, the compressor, the condenser, the expansion apparatus, and the heat pump controller, an evaporator, a compressor, a condenser and an expansion apparatus configured to form a refrigerant compression cycle; a heat pump controller configured to control operation of the heat pump according to a plurality of operation modes; and a case provided with the evaporator, the compressor, the condenser, the expansion apparatus, and the heat pump controller, characterized in that the plurality of operation modes comprise: a drying mode configured to control operation of the heat pump when the heat pump is provided in the cabinet; and a dehumidification mode configured to control operation of the heat pump when the heat pump is separated from the cabinet, wherein the heat pump further includes a control panel, provided at the case, to receive a control command and to provide the control command to the heat pump controller, wherein the clothes treating apparatus further comprises a control panel installed at the cabinet and electrically connected to the control panel, wherein the heat pump controller receives a control command from the control panel installed at the cabinet when the heat pump is mounted on the cabinet, and wherein the heat pump controller receives a control command from the control panel when the heat pump is separated from the cabinet. a drying mode configured to control operation of the heat pump when the heat pump is provided in the cabinet; and a dehumidification mode configured to control operation of the heat pump when the heat pump is separated from the cabinet, wherein the heat pump further includes a control panel, provided at the case, to receive a control command and to provide the control command to the heat pump controller, wherein the clothes treating apparatus further comprises a control panel installed at the cabinet and electrically connected to the control panel, wherein the heat pump controller receives a control command from the control panel installed at the cabinet when the heat pump is mounted on the cabinet, and wherein the heat pump controller receives a control command from the control panel when the heat pump is separated from the cabinet.