A wall-mounted type air conditioner allows attachment and detachment of a fan without depending on a shape of a heat exchanger and without moving the heat exchanger. The air conditioner includes: a main body housing a fan and a drain pan assembly. The drain pan assembly has: a peripheral part forming an outlet port to expel air from the fan and a drain pan and is detachably attached to the main body. The main body includes, an opening part for withdrawing the fan. The drain pan assembly is attached to the main body with the outlet port facing the opening part. The outlet port peripheral part includes: an upper wall part located above the outlet port and another outlet port.