A steam trap is an automatic valve designed to filter out condensed steam (condensate) and non-condensable gases (like air) from a steam system. Its primary function is to "trap" live steam inside the system, ensuring energy efficiency, maximum heat transfer, and the prevention of dangerous pipe damage.