The primary function of the lysosome is to degrade and recycle cellular waste materials and macromolecules.