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 captures the essence of the Declaration, as it aimed to formally declare the colonies' independence from British rule, justify their decision to do so, and seek support from other nations in their struggle for independence.