The chemical reactions and pathways involving tetrahydrofuran, a cyclic 4 carbon ether. It is one of the most polar ethers and is a widely used solvent for polar reagents. Since THF is very soluble in water and has a relatively low boiling point, significant amounts are often released into the environment, causing contamination problems.