He studied engineering at the Libertador Bernardo O'Higgins Military Academy. He joined the Chilean Army in 1864, with the rank of second lieutenant and was added to the commission in charge of the fortifications of Valparaíso.[1][2]
After fulfilling other commissions, he was sent to Araucanía in 1868, where he was assigned to survey plans and explore some rivers and unknown points.[2] At that time, he already had the title of geographer engineer. In 1872 he was sent in commission to Europe under the orders of Colonel Emilio Sotomayor Baeza. He oversaw the manufacture of rifles for the army. The Belgian government granted him an exclusive privilege patent for his invention of two firing systems applicable to revolvers and rifles.[1]
In 1873, he returned and various military engineering commissions were entrusted to him and in 1876 he was elected substitute deputy for Coquimbo from 1876 to 1879. Around the same time in, 1876 he was appointed intendant and commander of arms of Ñuble.[2] During the War of the Pacific, he accompanied the Minister of War, Cornelio Saavedra, as a military engineer.[2] He actively participated in the campaigns of the War of the Pacific, being a member of the general staff and Division General of the Chilean Reserve Army during the Lima Campaign.[1]
As Lieutenant Colonel, the Chilean army sent him in charge of the Lautaro Battalion with 500 men and 12 Grenadiers on horseback heading for Ilo and Pacocha, to draw up plans for the region considering an upcoming massive landing there.
On December 31, 1879, they landed in Ilo, taking possession of the railway yard and the telegraph office.[2] They explored the railroad that lead to Moquegua, where the 1st Division of the 2nd Army of the South was located, with 1,300 men from the Granaderos de Cuzco, Canchis, Canas and Grau. Upon arrival at the station, it was full of people who mistook them for Peruvian troops. The population fled, including Lieutenant Chocano with his men, towards the Los Angeles slope.[1]
The Chilean Division spent New Year's Eve in the surroundings of Moquegua. When lightening up on January 1, the city was surrendered by the resident foreigners, and the Chileans entered without resistance. Once the mission was accomplished, the Chilean troops embarked on the railway back to the coast. The Peruvians had removed the rails in several places, but anticipating this, they carried spare rails on the train.[1]
The expedition arrived in Ilo on January 2, embarking for Pisagua, and confirming the feasibility of landing for any future campaigns. Between February 18 and 25, some 9,500 soldiers, who formed 3 divisions, embarked in Pisagua. The convoy arrived in Ilo on the 26th of that month, landing 5,000 troops on the first day, and the remaining 4,500 landed the next day, without resistance. In 1880, he was appointed Chief of Staff of the 2nd Division of the Expeditionary Army.[1]
After the victory at the Battle of Tacna, he held the general command of arms. In 1881 he served as the head of the Reserve Army and went on to participate at the Battle of San Juan and Chorrillos and the Battle of Miraflores.[2] During the Occupation of Lima, he was appointed head of the infantry and later had the commission to persecute the defeated army. He was entrusted with the occupation of the ports of northern Peru and established public services in that area and harvested guano on the island of Lobos.[1]