During the Third Carlist War 1872–1876 the marines fought as field infantry. In 1879, the marine infantry academy, the "Academia General Central de Infantería de Marina" was founded. The colonial wars in the Philippines and on Cuba, with constant landing operations, lead to a reorganization of the marines into three brigades of two regiments each. In 1886 the marines contained four brigades, each with four tercios, while the reorganization of 1893 created three regiments of two battalions each. During the Philippine Revolution and the Spanish–American War the marines fought as part of army divisions.