The best explanation of the main purposes of the Declaration of Independence is: The Declaration of Independence was intended to raise a military, gain foreign allies, and announce a new nation.
This document was primarily aimed at formally declaring the American colonies' intention to separate from British rule and to articulate the principles underlying that decision, which included the desire for self-governance and individual rights. It also sought to garner international support in the fight for independence.