The primary function of CD20 is to act as a calcium channel, which is essential for B-cell activation and proliferation. It plays a role in the regulation of B-cell growth and differentiation. CD20's role in calcium influx makes it crucial for B-cell receptor (BCR) signaling, which is vital for immune responses.