Fire doors are designed to prevent the spread of fire within a building. They are important for ensuring the safety of occupants and preventing damage to the building.