Getter pumps function through a chemical reaction where reactive materials, known as getter materials, capture gas molecules. These materials are often metals like titanium or zirconium, which form stable compounds with gases like hydrogen, oxygen, and nitrogen. The captured gases are then trapped within the getter material, effectively removing them from the vacuum environment.