A while loop runs as long as a condition is true. It is useful when the number of iterations is unknown.