Sulfadimidine is prescribed to treat urinary tract infections, prostatitis (infection of the prostate gland) and respiratory tract infections caused by bacteria. It is capable of inhibiting the growth or reproduction of bacteria but not killing the bacteria.