Groundhogs are herbivores and primarily feed on vegetation such as grass, leaves, flowers, and crops. They are known to be excellent diggers and create elaborate burrow systems that can extend up to several feet underground.