Heparin is a glycosaminoglycan used as an anticoagulant, primarily to treat venous thrombosis and pulmonary embolism, among other conditions. It works by catalyzing reactions involving antithrombin and thrombin, with a rapid intravenous onset and variable subcutaneous bioavailability. Low molecular weight heparins, derived from heparin, have improved properties like better bioavailability and no requirement for APTT monitoring.