Complex sentence: Both armies were operating at some distance from their main bases and had marched for days to reach the battlefield, along the valley of the Ulanga River just south of the capital of Mbwila.
Split into simpler sentences: Both armies were operating at some distance from their main bases. They had marched for days to reach the battlefield, along the valley of the Ulanga River just south of the capital of Mbwila.