Millipedes primarily feed on decaying plant matter, such as leaves and dead vegetation. Some species may also consume fungi and small organic debris found in the soil.