It's referred to as 'long exposure': placing the camera on a support such as a tripod and leaving the shutter open for long time periods. You can actually see motion blur in the stars from the rotation of Earth, but only a little, meaning this exposure was probably in the ~1 minute range.