Stalactites are formed when dripping water leaves salt deposits on the ceiling of a cave, making icicle like structures.