Mexican–American War from the war of independence (1810–1821) as a weak and divided force. Before the war with the United States, the military faced both internal and foreign challenges. The Spanish still occupied the coastal fortress of San Juan de Ulúa, and Spain did not recognize Mexico's independence, so that the new nation was at risk for invasion. In 1829, the Spanish attempted to reconquer their former colony and Antonio López de Santa Anna became a national hero defending the homeland. The army had a set of privileges ("fueros"), established in the colonial era, that gave it jurisdiction over many aspects of
History of Maui in 1810. By developing alliances with the major Pacific colonial powers, Kamehameha preserved Hawaii's independence under his rule. Kamehameha is remembered for many reasons and one is the Kanawai Mamalahoe, the "Law of the Splintered Paddle", which protects human rights of non-combatants in times of battle. Kamehameha's full Hawaiian name is Kalani Paiʻea Wohi o Kaleikini Kealiʻikui Kamehameha o ʻIolani i Kaiwikapu kaui Ka Liholiho Kūnuiākea. Oral tradition indicates that castaways, most likely Spanish, shipwrecked on the islands sometime between 1521 and 1530. Versions of this story are found on Hawaii, Kauai, and Maui. In the Maui version several white