Boric acid contains a substance called sodium borate, which is used to control various types of pests, such as by creating boric acid solutions to kill spiders and other insects like earwigs.