The best way to get rid of moles is to use a trap, not just kill the grubs they eat. Killing the grubs does not eliminate moles as these pests also eat earthworms and other insects; without grubs they still have other food options.
In order to effectively eliminate moles from a yard or garden, follow the exact directions for placement of either an above- or a below-ground trap. Depending on the type of trap, move it when needed if there is still evidence of mole presence.
Other methods that have some effectiveness against moles are repellents, poisons and different home remedies, but traps are more effective in permanently addressing the issue.