Sialolithiasis is the medical term for the formation of stones in the salivary glands or ducts. These stones can block the flow of saliva, leading to symptoms such as pain, swelling, and infection. Treatment may involve hydration, massage, or surgical removal of the stones.