Migration of lymphocytes into inflammatory sites requires their adhesion to the vascular endothelium and subendothelial extracellular matrix (ECM). The ensuing penetration of the ECM is associated with the expression of ECM-degrading enzymes, such as endo-beta-D glucuronidase (heparanase), which cleaves heparan sulfate (HS) proteoglycans. We now report that, depending on the local pH, a mammalian heparanase can function either as an enzyme or as an adhesion molecule. At relatively acidified pH conditions, heparanase performs as an enzyme, degrading HS. In contrast, at the hydrogen ion concentration of a quiescent tissue, heparanase binds specifically to HS molecules without degrading them, and thereby anchors CD4+ human T lymphocytes. Thus, the local state of a tissue can regulate the activities of heparanase and can determine whether the molecule will function as an enzyme or as a proadhesive molecule.