Heparin is a glycosaminoglycan found in mast cells that acts as an anticoagulant by catalyzing the inhibition of coagulation factors like thrombin and factor Xa by antithrombin. It is commonly extracted from pig intestines or cow lungs. Low molecular weight heparins produced by fractionation have a higher affinity for inhibiting factor Xa over thrombin. Heparin is used to prevent and treat deep vein thrombosis and pulmonary embolism and in other conditions like myocardial infarction and unstable angina. Adverse effects include heparin-induced thrombocytopenia and osteoporosis with prolonged use.