the fighting was caused by the arrival of william walker in nicaragua. walker was an american soldier who believed slavery was good. he told the people of nicaragua that he wanted to help the country. what he really wanted was to conquer the five free nations of central america. the president of costa rica, juan rafael mora porras thought that walker wanted to conquer them. on february 27, 1856, mora declared the war against walker and nicaragua.