Bacterial infection

Has anyone ever had reoccurring bacterial infection and was there anything you did to help prevent it?