It discourages them from laying more eggs and gives them no food to feed on, because it's all below the surface of the sand. And with the spacing between the granules being so small, I don't think what's in the soil can actually make it to the air, effectively suffocating them.