How did New York become independent?

New York became independent by the colonies agreeing to sign the Declaration of Independence on July 26, 1788. New York became independent by the colonies agreeing to sign the Declaration of Independence on July 26, 1788.