The Declaration of Independence was written to explain and justify why the American colonies had the right to be free. Colonists thought they were citizens of the crown of England. But the British parliment passed laws that treated the colonies badly. There was different treatment for the colonists and for English citizens.