<P> A four - day uprising between January 6 and 9, 1895, began with an attempted coup d'état to restore the monarchy, and included battles between Royalists and the republican rebels . Later, after a weapons cache was found on the palace grounds after the attempted rebellion in 1895, Queen Lili ʻuokalani was placed under arrest, tried by a military tribunal of the Republic of Hawai ʻi, convicted of misprision of treason and imprisoned in her own home . On January 24, Lili ʻuokalani abdicated, formally ending the Hawaiian monarchy . </P> <P> The Committee of Safety declared Sanford Dole to be President of the new Provisional Government of the Kingdom of Hawai ʻi on January 17, 1893, removing only the Queen, her cabinet, and her marshal from office . On July 4, 1894, the Republic of Hawai ʻi was proclaimed . Dole was president of both governments . As a republic, it was the intention of the government to campaign for annexation with the United States of America . The rationale behind annexation included a strong economic component--Hawaiian goods and services exported to the mainland would not be subject to American tariffs, and would benefit from domestic bounties, if Hawaii was part of the United States . </P> <P> In 1897, William McKinley succeeded Cleveland as president . A year later he signed the Newlands Resolution, which provided for the annexation of Hawaii on July 7, 1898 . The formal ceremony marking the annexation was held at Iolani Palace on August 12, 1898 . Almost no Native Hawaiians attended, and those few who were on the streets wore royalist ilima blossoms in their hats or hair, and, on their breasts Hawaiian flags with the motto: Kuu Hae Aloha ("my beloved flag"). Most of the 40,000 Native Hawaiians, including Lili ʻuokalani and the royal family, shuttered themselves in their homes, protesting what they considered an illegal transaction . "When the news of Annexation came it was bitterer than death to me", Liliʻuokalani's niece, Princess Kaʻiulani, told the San Francisco Chronicle . "It was bad enough to lose the throne, but infinitely worse to have the flag go down ." The Hawaiian flag was lowered for the last time while the Royal Hawaiian Band played the Hawaiian national anthem, Hawaiʻi Ponoʻī . </P> <P> The Hawaiian Islands, together with the distant Palmyra Island and Stewart Islands, became the Territory of Hawaii, a United States territory, with a new government established on February 22, 1900 . Sanford Dole was appointed as the first governor . ʻIolani Palace served as the capitol of the Hawaiian government until 1969 . </P>

When were the hawaiian islands annexed by the united states