How Did the colonies come about?

The colonies got freedom from Great Britain by winning a war. The 1st 13 states are colonies.