The rest mass of a photon is zero, meaning that it possesses momentum when in motion, which is equivalent to mass. However, when the photon is at rest, its mass is zero.