A beam of sunlight becomes visible when it enters a dusty room through a window. This is because the dust particles present in the air in the room scatter the light all around the room. This scattered light enters our eyes, enabling us to see the beam of sunlight.