Most people experience flank pain at least once in their lifetime, and the discomfort is usually temporary. However, constant or severe pain in the flank may indicate a serious medical condition, such as dehydration or urinary tract infection. Kidney stones or another kidney problem can also cause persistent flank pain.