Spray foam insulation works by creating an airtight seal around your home or business, which helps prevent air leakage and improves thermal performance.