Mexico 's independence would not be effectively declared from Spain in the Declaration of Independence of the Mexican Empire until September 28 , 1821 , after a decade of war .
Mexico 's independence from Spain would n't be declared until September 27 , 1821 , after ten years of war .