The invention relates to a water dispenser capable of automatically changing water and based on the Internet of things. The water dispenser comprises a base, a main body, a central control mechanism and a replacement mechanism; the replacement mechanism comprises a lifting assembly, an overturning assembly and a clamping assembly; the lifting assembly includes a control unit and a telescopic unit, the control unit comprises a first motor, a first drive shaft, a first gear and a mobile rod, the telescopic unit includes a mobile block, a fixed block, a telescopic frame and a sliding block, the overturning assembly includes a lifting plate, an overturning rod and a take-up unit, the take-up unit comprises a supporting rod, a second motor, a second drive shaft, a drive wheel and a connecting wire, the clamping assembly comprises a base plate, a drive unit and a clamping unit, the clamping unit comprises a strip-type gear and clamping plates. According to the water dispenser capable of automatically changing water and based on the Internet of things, through the replacement mechanism, a bucket can be fixed and lifted to be matched with the water dispenser, manual conveying is avoided in this way, the process is safer and more convenient to conduct, and thus the practicability of the water dispenser is largely improved.