Check out this phenomenon known as a ‘shelf cloud’

Shelf clouds form at the leading edge of a thunderstorm.