The invention relates to an efficient 3D printer with a platform cleaning function based on Internet of things. The 3D printer comprises a base, a support frame, a printing module, a switching mechanism, a cleaning mechanism and a central control mechanism, wherein the switching mechanism comprises a moving assembly, a power assembly, a transmission belt, a support rod and two switching assemblies; the cleaning mechanism comprises a driving assembly, a position limiting block, a sleeve, an air cylinder, a third motor, a first cleaning brush and a second cleaning brush. The efficient 3D printerwith the platform cleaning function based on Internet of things has the advantages that the switching use of two platforms of the 3D printer is realized through the switching mechanism, so that one platform is in a work state, and meanwhile, the other platform is in a preparation state; therefore the continuous printing of the 3D printer is realized; the printing efficiency of the 3D printer is improved; through the cleaning mechanism, one platform is used, and meanwhile, the other platform is cleaned, so that the cleanness degree of the platform is improved; the printing precision of the 3Dprinter is improved.