The Americans established a local Philippine government in the Philippines when they held the first municipal election in the country in the town of Baliuag on May 6, 1899. At the beginning of the American rule, 1899–1900, Malolos became the headquarters of the Military Governor of the Philippines at Casa Real. On February 27, 1901, the Philippine Commission officially transferred the seat of government to Malolos, and the "Casa Real de Malolos" was the seat of the Provincial Governor from 1900 to 1930 until the completion of the capitol building at Barangay Guinhawa, Malolos City.