A leek and an onion are two different plants. However, they are both from the allium family, so they share some similarities. Leeks have a mild onion flavor and look like larger/longer green onions. In a pinch, you can use leeks to replace onions in a recipe.