Overactive bladder can cause frequent urination, especially at night. Nocturia, or nighttime urination, has several potential causes including drinking too much before bed, diabetes, heart failure, infections, or medications. Simple lifestyle changes like limiting fluids before sleep, avoiding caffeine and alcohol, maintaining a healthy weight, and timing diuretic medications can help prevent nocturia. If lifestyle changes are not effective, medications that reduce bladder spasms may be prescribed.