During the War of the Pacific, the Marine Garrison Battalion under the direction of the Commander General of the Navy was created on 10 January 1880 with a force of 600 men. The Marines participated in the Battle of Miraflores on 15 January 1881 with 524 Marines led by Juan Fanning and Guardia Chalaca. Both of the commanders were killed along with nearly all Marines, with the infamous shout of Fanning becoming a motto of the Peruvian Marines, "¡Adelante marina, marina adelante!" or "Forward Marine, Marine forward!".