Bronchitis is typically caused by a viral or bacterial infection that inflames the lining of the bronchial tubes in the lungs. It can also be triggered by irritants such as tobacco smoke or air pollution. The best way to prevent bronchitis is to practice good hygiene, avoid smoking, and minimize exposure to respiratory irritants.