 The Navy Brigade was later formed after another battalion was formed and on 2 June 1823, the brigade attacked the Spanish in Arica, successfully taking the city.During the War of the Confederation, the Navy Brigade fought in the Siege of Talcahuano on 23 November 1837.In 1847, President Ramón Castilla reorganized the Peruvian Navy, creating six companies of the naval infantry.