Diatomaceous earth is an abrasive and an absorbent. These properties make it effective in controlling slugs and certain insects. To control ants, fleas, roaches, lice, mites, and ticks indoors, vacuum the infested area, then dust it with a small amount of diatomaceous earth. Repeat every few weeks until resolved.