Garlic is a popular companion plant because it deters many pests and contains a naturally occurring fungicide that can help prevent diseases. Many other vegetables can be grown alongside garlic, including tomatoes, peppers, potatoes, carrots, and spinach. However, garlic and other alliums can stunt the growth of some plants, including beans, peas, sage, parsley, and asparagus.