D. kidneys
The kidneys are the organs responsible for producing urine in humans and other mammals. They filter blood, remove waste, and excrete it as urine. The ureters, bladder, and urethra are involved in the transport and storage of urine, but they do not produce it.