In the early Heian period, the late 8th and early 9th centuries, Emperor Kammu sought to consolidate and expand his rule in northern Honshū, but the armies he sent to conquer the rebellious Emishi people lacked motivation and discipline, and failed in their task.