Fire marshals are responsible for enforcing fire codes and regulations, conducting fire safety inspections, and investigating the causes of fires. They work closely with building owners, managers, and occupants to ensure that fire safety measures are in place and that buildings are up to code. In the event of a fire, fire marshals may also be involved in coordinating emergency response efforts and providing support to firefighters and other first responders.