Centipedes are actually one of the good guys. They don’t destroy your home or contaminate your pantry, but instead feast on the bad bugs like termites, moths, and roaches. But if you just can’t stomach coexisting with these many-legged neighbors, trap them or spray an insecticide around baseboards, doors, and windows. Meanwhile, prevent a future infestation by removing brush and debris from the perimeter of the house and sealing up cracks and crevices where they could enter your home. Centipedes thrive in moist environments, so you may want to invest in a dehumidifier as well.