Ureteral stones are formed in the kidneys when crystals in the urine stick together and become large enough to form a stone. Crystals are solid forms of chemical compounds in the urine.