We give a combinatorial description of a new diagram algebra, the partial Temperley--Lieb algebra, arising as the generic centralizer algebra EndUq(gl2)(V⊗k), where V=V(0)⊕V(1) is the direct sum of the trivial and natural module for the quantized enveloping algebra Uq(gl2). It is a proper subalgebra of the Motzkin algebra (the Uq(sl2)-centralizer) of Benkart and Halverson. We prove a version of Schur--Weyl duality for the new algebras, and describe their generic representation theory.