The golden hour, which is the hour before sunset or after sunrise, provides the most flattering lighting for beach photography. Avoid midday when the sun is high and can create harsh shadows.