UPF clothing is made with a tighter weave to fabrics like cotton and viscose in order to block the sun's rays out, and often it is made with a special UV resistant fabric.