Nitrofurantoin kills E. coli and other bacteria that lead to infections in the urinary tract.