It can stay below the horizon for months, then never set at all.
Because Earth is tilted on its axis, the poles swing between extremes of light. During **polar night**, the Sun stays below the horizon for weeks or months of unbroken darkness. In summer, the **midnight sun** does the opposite, circling the sky around the clock without ever setting.