The formal declaration of independence established the new American revolutionary government and officially declared war against Great Britain. The primary purpose of the declaration was to assist the Second Continental Congress in obtaining aid from foreign countries.