The invention relates to the technical field of vending, in particular to a vending machine. The vending machine comprises a storage chamber, a solar photovoltaic cell panel, a storage battery, a refrigerating loop and a cold storage device. The solar photovoltaic cell panel is located on the top of the storage chamber, the storage battery is electrically connected with the solar photovoltaic cell panel, the refrigerating loop is electrically connected with the storage battery, and the cold storage device is connected with the refrigerating loop. The refrigerating loop comprises a compressing device and an evaporating device, the storage battery and the compressing device are located outside the storage chamber, and the evaporating device and the cold storage device are located inside the storage chamber. According to the vending machine, solar energy is utilized for supplying electricity to the refrigerating loop, the vending device has the advantages of saving energy and being friendly to the environment, the cold storage device combined with the refrigerating loop is utilized for storing the cooling capacity, the fresh fruit and vegetable, deli and other commodities needing to be refreshed can be located at the place with the appropriate low temperature to be vended, and edible safety is guaranteed. In addition, the vending machine is low in operation cost, urban electricity consumption can be reduced, power utilization pressure can be reduced, environmental friendliness is facilitated, and pollution does not exist.