Expansion foam is used primarily in construction for filling and sealing gaps to provide insulation, block air and moisture, dampen sound, and stabilize structures. It creates a permanent, flexible barrier against thermal transfer, drafts, and noise, making it useful around window and door frames, pipe penetrations, and other joints to improve a building's energy efficiency and overall comfort.