noun
scarabaeid beetle grub
Specifically refers to the soil-dwelling larva of scarab beetles, such as the Japanese beetle or cockchafer. Often considered a garden pest.
庭の土を掘ったら、地虫がたくさん出てきた。
When I dug up the garden soil, a lot of beetle grubs came out.
noun
soil-dwelling insect; ground insect
Broader, less common use for any insect or worm-like creature living in the soil. The specific sense (beetle grub) is more typical.
地虫には、コガネムシの幼虫以外にも様々な種類がいる。
Besides scarab beetle larvae, there are various other kinds of soil-dwelling insects.