Home > Growing tips & recipes > Allium Leaf Miner: How to Spot, Prevent and Protect Your Crops 5 min read 10.09.2025 Allium Leaf Miner: How to Spot, Prevent and Protect Your Crops The Allium Leaf Miner is a major pest for onions, leeks, and garlic, causing white scars on leaves, wilting, and tunnelling in stems. If left unchecked, maggots inside the plants can destroy entire crops. Learn how to identify symptoms, prevent infestations with mesh and crop rotation, and protect your alliums from this destructive garden pest. If you’ve ever nurtured a bed of onions, leeks, or garlic, only to watch them suddenly wilt and collapse, you may have encountered one of the most frustrating pests in the veg garden, the Allium Leaf Miner. This small but destructive insect has become a serious problem for growers across the UK and beyond. Knowing how to identify it early could save your harvest.What Is the Allium Leaf Miner?The Allium Leaf Miner (Phytomyza gymnostoma) is a tiny fly whose larvae wreak havoc on allium crops. They are a common sight in gardens and allotments. Unlike some pests that nibble on leaves, this one goes straight for the plant’s core, making it especially devastating.Symptoms of Allium Leaf Miner DamageSpotting the pest early is key. Look out for:White lines or dots on leaves – these are egg-laying scars left by the adult fly. Wilting and collapse of foliage – affected plants often appear as though they’ve been starved of water. Tunnelling in stems – slice into the stem or bulb and you may find brownish tunnels, sometimes with tiny yellow-white maggots inside.If you see all three signs – white scars, collapsed leaves, and tunnelling, there’s a high chance you’re dealing with Allium Leaf Miner.Which Crops Are at Risk?All members of the allium family are vulnerable, including:Onions Leeks Garlic Shallots ChivesSadly, this means many staple crops can be affected. A single infestation can wipe out a year’s supply of onions or ruin carefully raised leeks just before harvest.How to Protect Against Allium Leaf MinerPrevention is your best line of defence. Once the maggots are inside the stems, there’s little you can do. Here are the most effective strategies:Use Fine Mesh or FleeceCover your crops with insect-proof mesh from March to April and again in September to October, when the adult flies are active. This prevents them from reaching the plants to lay eggs.Rotate Your CropsAvoid planting alliums in the same spot year after year. Crop rotation can help reduce the build-up of pests in the soil.Remove and Destroy Affected PlantsIf you spot tunnelling or maggots, dig up and dispose of the plants immediately, do not compost them, as the pests can survive and spread.Time Your PlantingSome gardeners have had success by adjusting sowing and planting dates to avoid peak egg-laying seasons. Late planting can reduce the risk of infestation.While it can feel disheartening, don’t let this pest put you off growing onions, garlic, or leeks. With the right protections in place, you can still enjoy healthy crops. Think of Allium Leaf Miner as a reminder that gardening is all about learning, adapting, and finding new ways to work with nature. Meet the author Nelly Nelly works in the She Grows Veg marketing department and is an incredible cook! She's learning how to grow veg fast in her very own container garden. Her favourites so far are the Dwarf Sunflower called 'Sunspot' and our Dwarf Pea called 'Tom Thumb'. Previous Leaf Miners: What They Are and How to Control Them in Your Garden Next Fasciation in Plants: What It Is and How to Spot It