Philippine Declaration of Independence
Following the end of World War II, the United States granted independence to the Philippines on 4 July 1946 via the Treaty of Manila. July 4 was observed in the Philippines as "Independence Day" until August 4, 1964 when, upon the advice of historians and the urging of nationalists, President Diosdado Macapagal signed into law Republic Act No. 4166 designating June 12 as the country's "Independence Day". June 12 had previously been observed as "Flag Day" and many government buildings are urged to display the Philippine Flag in their offices.
President of the Philippines
In April 1898, the Spanish–American War broke out, and the Asiatic Squadron of the United States Navy sailed for the Philippines. At the Battle of Manila Bay on May 1, 1898 the American Navy decisively defeated the Spanish Navy effectively ending Spanish rule in the Philippines. Aquinaldo subsequently returned to the Philippines aboard a U.S. Navy vessel and renewed the revolution. He formed a dictatorial government on May 24, 1898 and issued the Philippine Declaration of Independence on June 12, 1898. On June 23, 1898, Aguinaldo transformed his dictatorial government into a revolutionary government. On January 23, 1899, he was then elected President of the First Philippine Republic, a government constituted by the Malolos Congress under the Malolos Constitution. Consequently, this government is also called the Malolos Republic.