The invention discloses a garbage can for automatically conveying garbage. Universal wheels are arranged at the front end of the lower portion of a bottom plate, driving wheels are arranged on the rear end of the bottom plate, and are driven through a motor, the motor is in rigid connection with the bottom plate through a motor base, a sensor is arranged at the front end of the bottom plate, a supporting rod is connected with the bottom plate through a support, one end of a lower telescopic rod is connected with the bottom plate through the support, the other end of the lower telescopic rod isconnected with the supporting rod through the support, one end of an upper telescopic rod is connected with the supporting rod through the support, the other end of the upper telescopic rod is connected with a garbage can body through the support, a rotating shaft is arranged in the middle of the garbage can body and is matched with the supporting rod, a cover is connected with the garbage can body through a supporting base, and is supported through a hydraulic rod, a handle is arranged on the cover, when garbage needs to be put, after a sensor on the handle carries out detection, the telescopic rods open the cover, after it is detected that the garbage can is full of the garbage, the device moves and detects for obstacle avoiding, under the effect of the telescopic rods and the supporting rod, the garbage is poured out, and after finishing, the garbage can returns to the placing point. A solar panel on the cover can charge the storage battery, manual cost is reduced, and garbage cleaning is efficient and rapid.