The invention discloses an automatic food feeding machine, and belongs to the field of pet equipment. The automatic food feeding machine comprises a food bowl and a food storage tank, wherein the bottom part of the food storage tank is provided with an opening for falling of food, the opening is positioned above the food bowl, the relative positions of the food bowl and the food storage tank are fixed, the bottom part of the food bowl is provided with a microswitch and a first spring, the first spring is vertical to the bottom surface of the food bowl, a support plate is arranged on the first spring, the bottom part of the food storage tank is further provided with a retaining plate and a guide rail, the retaining plate is provided with a metal rod extending into the guide rail, the retaining plate is guided by the guide rail through the metal rod to slide between the opening blocking position and the opening leaving position, one end, away from the retaining plate, of the guide rail is provided with an electromagnet, the electromagnet is energized to generate magnetic force for attracting the metal rod, the interior of the guide rail is further provided with a second spring, the second spring is in contact with the metal rod, the microswitch is electrically connected with the electromagnet, and the electromagnet is de-energized after the microswitch is touched. The automatic food feeding machine has the advantage that only the sufficient amount of pet food is stored in the food storage tank, so the moisture and quality degradation of the pet food are prevented, and a pet is guaranteed to eat the food at any time.