The invention discloses a machine used for milking a donkey. The machine comprises a supporting plate, wherein the top of the supporting plate is provided with a vacuum pump, a vacuum tank, a donkey milk storage tank and a partition plate, the top of the partition plate is provided with a top plate, the top of the top plate is provided with a control box, the donkey milk storage tank is connectedwith a main sucking pipe, one end of the main sucking pipe is provided with two branch sucking pipes, the two branch sucking pipes are provided with sucking cups, proximity switches and electrically operated valves respectively, the two sucking cups are provided with sucking covers and silica gel cavities, an armrest is welded to the portion, located at one side of the vacuum pump, of the supporting plate, a fixed leg is welded to the bottom of the supporting plate, and rollers are movably connected to the bottom of the supporting plate. The machine used for milking the donkey has the advantages that through the arrangement of the proximity switches, the electrically operated valves and the control box, when no donkey milk is squeezed, the proximity switches send signals to the control box, then the control box commands the electrically operated valves to be closed, so that the sucking cups cannot milk any more; the arranged transparent silica gel sucking covers and silica gel cavitiesof an oral cavity structure of a young donkey can reduce the damage of the sucking cups to the nipples.