After the dissolution in 1830 of Gran Colombia and the death of Bolivar, the Army of the new New Granada had been involved in war and civil war without being able to progress or modernize. Its officers were not well trained or technically skilled. The government addressed this by founding and organizing military schools and colleges, but was hampered by the constant civil wars that financially drained the country's economy. In 1839 General Tomas Cipriano de Mosquera hired Italian Colonel Agustin Códazzi as an inspector of the army. As a consequence of these civil wars over partisan affairs, the chiefs and officers began to be involved in politics. The need to professionalize and retrain the army prompted the creation of a military school, which was created in 1887. In order to reorganize the army, the government hired a French military mission. Its mission was fruitful and the organization along French lines based on divisions, regiments and battalions was implemented in the country. Unfortunately another civil war, perhaps the most devastating of them all, the Thousand Days War, was declared on October 8, 1899, and did not allow the retraining and education of officers and commanders. This civil war lasted until 1903. With the ending of the Thousand Days War, General Rafael Reyes Prieto was elected President of Colombia with many ambitious plans to reorganize and professionalize the army. The first thing he did was to reduce troop numbers drastically: the army at the time had an estimated 80,000 troops who were poorly equipped, poorly trained, poorly dressed and very malnourished. Also the army lacked professionalism and sense of duty to the country and never acted as a national army, acting instead as militias and armed factions led by Commanders who had their own political agendas.