Answer:
Hail is formed when clouds, specifically cumulonimbus clouds, have both high altitudes and powerful updrafts within the condensation layer of the cloud. As rain droplets form, they are frozen and then carried aloft again, where their temperature condenses additional water on the exterior, which then also freezes. After an extended period of gaining an increasing number of ice layers, the hailstones at some point are too heavy for the updrafts to lift, and they fall to the ground, sometimes losing layers to melting in the warmer air below.
(see related image link below)