What was the purpose of the declaration of Independence, written in 1776?

The purpose of the Declaration of Independence, written in 1776, was to officially announce and assert the independence of the American colonies from British rule. It was a document drafted by Thomas Jefferson, with input from other founding fathers, and it outlined the reasons and justifications for separating from Great Britain. It declared that all men are created equal and have certain unalienable rights, such as life, liberty, and the pursuit of happiness. The Declaration also accused King George III of violating the rights of the colonists and listed a series of grievances against the British government. Moreover, it served as a rallying point for the American Revolution and inspired other countries around the world in their struggles for independence.