Fire prevention is a function of many fire departments. The goal of fire prevention is to educate the public to take precautions to prevent potentially harmful fires, and be educated about surviving them. It is a proactive method of reducing emergencies and the damage caused by them. Many fire departments have a Fire Prevention Officer.
In the general sense of preventing harmful fires, many aspects are discussed in the articles
Fire protection and Fire safety. National work on best practices is in the Vision 2020 program.