Magpies are omnivorous birds and have a varied diet. They primarily feed on insects, worms, and other invertebrates. They also consume fruits, seeds, nuts, and even small mammals or birds.