During the Philippine Revolution, revolutionary forces under Manuel Tinio, supported by the Ilocano rebels, attacked and defeated the Spanish colonial forces and captured the city in the Siege of Vigan. During the Philippine–American War, American forces led by Commander McCracken and Lt. Col. James Parker occupied the town in Nov. 1899.