Urinary tract infections are common. Here, we delineate a role of extracellular DNA trap (ET) formation in kidney antibacterial defense and determine mechanisms of their formation in the hyperosmotic environment of the kidney medulla. ET of granulocytic and monocytic origin were present in the kidneys of patients with pyelonephritis along with systemically elevated citrullinated histone levels. Inhibition of the transcription coregulatory, peptidylarginine deaminase 4 (PAD4), required for ET formation, prevented kidney ET formation and promoted pyelonephritis in mice. ETs predominantly accumulated in the kidney medulla. The role of medullary sodium chloride and urea concentrations in ET formation was then investigated. Medullary-range sodium chloride, but not urea, dose-, time- and PAD4-dependently induced ET formation even in the absence of other stimuli. Moderately elevated sodium chloride promoted myeloid cell apoptosis. Sodium gluconate also promoted cell death, proposing a role for sodium ions in this process. Sodium chloride induced myeloid cell calcium influx. Calcium ion-free media or -chelation reduced sodium chloride-induced apoptosis and ET formation while bacterial lipopolysaccharide amplified it. Autologous serum improved bacterial killing in the presence of sodium chloride-induced ET. Depletion of the kidney sodium chloride gradient by loop diuretic therapy diminished kidney medullary ET formation and increased pyelonephritis severity. Thus, our data demonstrate that ETs may protect the kidney against ascending uropathogenic E.coli and delineate kidney medullary range sodium chloride concentrations as novel inducers of programmed myeloid cell death.