Kidney stones are small crystals from dissolved material in the urine
that crystallize in the urinary outflow tract.
If they can pass, you are lucky. And you might see them in the urine. If this is a regular occurrence, you might want to save a few, give them to your family doctor to have them analyzed to get suggestions as to how to avoid their formation.