The purpose of an air filter in your home is to trap and remove airborne particles, such as dust, pollen, and pet dander, to improve indoor air quality and protect the HVAC system from damage caused by these particles.