Antibiotics help treat periodontal disease by targeting and eliminating the bacteria that cause infection and inflammation in the gums. They reduce the bacterial load in the periodontal pockets, allowing the gums to heal and preventing further damage to the supporting structures of the teeth.