Xigduo XR works by combining two actions: dapagliflozin helps the kidneys remove glucose from the bloodstream, while metformin decreases glucose production in the liver and increases insulin sensitivity, allowing the body to use glucose more effectively.