A skybox is a clever visual trick used to create a convincing sky or distant background in games. It works much like a panoramic photo: several images are generated and then "stitched" together into a seamless 360-degree picture.
That surrounding image is then mapped onto the inside of a cube or sphere around the player, giving the illusion of a vast, continuous environment without needing to render every distant detail.