Rifapentine is known as a rifamycin antibiotic. It works by stopping the growth of bacteria.This antibiotic treats only bacterial infections. It will not work for viral infections (such as common cold, flu). Unnecessary use or misuse of any antibiotic can lead to its decreased effectiveness.