Yes, diatomaceous earth will kill ants and other insects, because it is able to pierce the exoskeleton of the ant which causes dehydration.