The first question you should ask yourself is whether or not you actually want to get rid of lawn moles. Many people are mistaken about the role of moles in the garden, and these small, shy creatures are actually quite beneficial for the garden, although they can make a mess of the lawn sometimes. Most people who think that they want to get rid of lawn moles actually want to get rid of rodent pests like gophers and voles, which cause extensive damage to plants in the garden as well as digging unsightly tunnels. More probably, you want to relocate the lawn moles to make them work for you, instead of against you.
Moles are insectivores, so they eat insects, grubs, and other unwanted garden pests. Lawn moles are actually quite effective forms of natural insect control in the garden. They also keep the soil well aerated, making it easier for plants to grow and acting like nature's rototillers. Unfortunately, moles can wreak havoc on lawns with their tunnels, which cause lawns to become uneven, and when the moles surface, they form piles of dirt which are rather unsightly. As a result, some people want to get rid of lawn moles to keep their lawns looking neat and to make walking on the lawn safe; deep mole holes and tunnels can invite a twisted ankle or broken leg.
One way to get rid of lawn moles is with a commercial mole repellent, which typically comes in the form of a liquid which needs to be sprayed onto the lawn. You can also make your own with castor oil, a substance which moles don't enjoy. Another technique to get rid of lawn moles is to use a sonic repellent; this will also help to get rid of gophers and voles, sending out sound waves underground which make your lawn inhospitable to visitors. You can also set traps in the holes in the lawn to catch the moles in action; a number of companies produce humane catch and release traps which you can use to relocate moles.
Plants can also be used to control moles. Moles do not like the scent of crown imperial, siberian squill, daffodils, alliums, marigolds, euphorbia, and castor beans. Many people enjoy these plants are decorative features; you can plant a border of them around the lawn to keep the moles out and to liven up the garden. If possible, make the lawn less hospitable to moles by reducing the population of insects and grubs; the best way to do that is to under water the lawn.
You might also want to consider getting rid of your lawn altogether, replacing it with a groundcover you can walk on like Corsican mint, moss, and other alternatives to grass. Grass is notoriously energy hungry, and maintaining a lawn can be a massive waste of resources. If you live in an area with an insecure water supply, planting a drought-tolerant groundcover will be environmentally friendly, and it will keep the moles away, because you can keep the soil dry, rather than moist and insect rich like the moles prefer it.