The invention relates to an automatic parking device for a cart, which utilizes a cart push rod to realize free pushing and automatic parking of the stroller through simple mechanical connection and different directions of gravity, pushing force and pulling force, and can be applied to various cart, especially baby carts. The problem that a stroller, especially a baby stroller, is in accidental danger on a slope due to the fact that braking is not good is solved. According to the device, the cart comprises a push rod, the push rod is rotatably and slidably connected with the cart, the upper portion of the push rod is heavier than the lower portion of the push rod, the push rod is fixed to a limiting device on the cart, the lower tail end of the push rod is buckled, and gears are fixed to wheels. And when the push rod is not pushed or pulled, the buckle at the lower tail end of the push rod is embedded with the gear under the action of gravity, and the cart is braked. When the push rodis pushed forwards, the upper portion of the push rod swings forwards, the lower tail end buckle leaves the gear, and wheels can move forwards. When the push rod is pulled backwards, the push rod integrally moves backwards and upwards, the lower tail end buckle leaves the gear, and the wheels can move backwards.