qnli question: When did the colonies declare independence? sentence: Meanwhile, the revolutionaries expelled British officials from the 13 states, and declared themselves an independent nation on July 4, 1776.