In patients with suspected infection and obstruction, initial treatment is relief of obstruction as soon as possible with a cystoscopically placed ureteral stent or percutaneous nephrostomy tube and treatment of the infection followed by removal of calculi as soon as possible.