The end of the American Civil War in 1865 and the re-assertion of the Monroe Doctrine by the United States, which was no longer involved in internal conflict and which possessed enormously expanded and modernized military forces as a result of the war, prompted the evacuation of Spanish forces back to Cuba that same year.