Star trails occur when your camera's shutter is open for an extended period, causing the stars to appear as streaks in your image. To avoid star trails, use a shorter exposure time (10-15 seconds is a good starting point) and adjust your ISO and aperture settings to compensate for the reduced exposure time.