What is companion planting? - it is creating planting schemes which have a mutual benefit to each other. It is not only about natural pest control but also about helping other nearby plants by improving nutrients in soil and compost, providing a little shelter from wind and helping to attract a variety of beneficial insects. It can also help improve pollination of fruit and vegetable crops.
Details of a good companion plant guide can be found on the Thompson and Morgan website here.