The Reciprocity Treaty of 1887 between the U.S. and the Hawaiian Kingdom granted the U.S. exclusive rights to enter, improve, and use Pearl Harbor as a coaling and repair station. This laid the foundation for the major Pacific fleet base that became pivotal in WWII. Formal cession came with annexation (1898).