Using the moon phases to plant food crops is an ancient practice. Here are the basics!
Food crops that grow above ground such as beans, grains, peas, tomatoes etc. are planted during the time the moon is waxing (growing larger).
Root crops such as potatoes, beets, carrots, onions etc. are sown when the moon is waning (growing smaller). Other tasks such as weeding, transplanting, mowing the lawn (supposedly it won’t grow back so fast), setting fence posts and harvesting are also performed during this phase.
If you are intrigued with the practice of planting by the moon you might be interested in Matt Jackson’s book Lunar and Biodynamic Gardening.