A garage dehumidifier pulls in humid air and passes it over cold coils.  The moisture in the air condenses on these coils, turning into water droplets, which the dehumidifier collects in a water tank or drains through a hose.  The dehumidifier then releases dry, moisture-free air into the garage (Source: How Stuff Works).