Groundhogs primarily eat plants, but they can also eat insects and small animals. Having a groundhog in your yard can benefit your garden by keeping pests under control.