Antibiotics are often given to treat bacterial infections. They can make the time you are sick shorter.