A washing machine, comprising: an external-mounted housing having an inlet/outlet in the front surface of the external-mounted housing; a drawer capable of getting into and getting out of the external-mounted housing through the inlet/outlet; a washing drum arranged in the drawer through a suspension, wherein the washing drum comprises a washing and dewatering drum and an outer drum, the washing and dewatering drum has a fluid balancer, the outer drum is capable of accommodating the washing and dewatering drum in a free rotation manner; and a sliding mechanism for enabling the drawer to move rectilinearly relative to the external-mounted housing; characterized by further comprising: an acceleration sensor arranged on the drawer; and a control part, wherein the control part obtains inclination of a main body of the washing machine based on a static acceleration detected by the acceleration sensor, performs first dewatering control based on the inclination, and performs second dewatering control based on a dynamic acceleration, the dynamic acceleration is detected by the acceleration sensor and corresponds to vibration of the drawer during dewatering; wherein in the first dewatering control, when the inclination of the main body of the washing machine is greater than a threshold value of the inclination, the control part enables the washing and dewatering drum to rotate in such a manner that an offset load generated in the washing and dewatering drum is located in the upper side of the inclined main body of the washing machine, and then starts rotation of the washing and dewatering drum for dewatering; wherein in the second dewatering control, when the dynamic acceleration detected by the acceleration sensor is greater than a threshold value of the dynamic acceleration, the control part stops the rotation of the washing and dewatering drum, and then performs unwrapping operation for unwrapping the washings in the washing and dewatering drum. an external-mounted housing having an inlet/outlet in the front surface of the external-mounted housing; a drawer capable of getting into and getting out of the external-mounted housing through the inlet/outlet; a washing drum arranged in the drawer through a suspension, wherein the washing drum comprises a washing and dewatering drum and an outer drum, the washing and dewatering drum has a fluid balancer, the outer drum is capable of accommodating the washing and dewatering drum in a free rotation manner; and a sliding mechanism for enabling the drawer to move rectilinearly relative to the external-mounted housing; characterized by further comprising: an acceleration sensor arranged on the drawer; and a control part, an acceleration sensor arranged on the drawer; and a control part, wherein the control part obtains inclination of a main body of the washing machine based on a static acceleration detected by the acceleration sensor, performs first dewatering control based on the inclination, and performs second dewatering control based on a dynamic acceleration, the dynamic acceleration is detected by the acceleration sensor and corresponds to vibration of the drawer during dewatering; wherein in the first dewatering control, when the inclination of the main body of the washing machine is greater than a threshold value of the inclination, the control part enables the washing and dewatering drum to rotate in such a manner that an offset load generated in the washing and dewatering drum is located in the upper side of the inclined main body of the washing machine, and then starts rotation of the washing and dewatering drum for dewatering; wherein in the second dewatering control, when the dynamic acceleration detected by the acceleration sensor is greater than a threshold value of the dynamic acceleration, the control part stops the rotation of the washing and dewatering drum, and then performs unwrapping operation for unwrapping the washings in the washing and dewatering drum.