The utility model discloses a kind of vending devices with automatic closing function, including storage box, vending device ontology, movable control mechanism, the storage box is provided with an opening, the vending device ontology is placed in the storage box, the vending device ontology is movably connected in the storage box to realize that vending device ontology can be exposed from opening, the movable control mechanism is used to control vending device ontology activity, the vending device ontology is provided with storage cavity, the storage cavity is rotatably connected with goods door, the vending device ontology is provided with lock body, elastic member is arranged between the lock body and vending device ontology, the elastic member has the pre-tightening force of making lock body keep in locking position, the lock body is provided with steering drive slope, the goods door is provided with lock seat, the lock seat is provided with lock mouth, when the goods door is closed, the lock seat touches the steering drive slope and overcomes the pre-tightening force of the elastic member, push lock body retraction, when the lock mouth moves and aligns the lock body, the elastic member pushes the lock body into the lock mouth, when the vending device ontology is movably stored in the storage box, the storage box touches and pushes the goods door to the closing direction movement.