The Medes gained control over the lands in eastern Anatolia that had once been part of Urartu and eventually became embroiled in war with the Lydians, the dominant political power in western Asia Minor. In 585 BCE, probably through the mediation of the Babylonians, peace was established between Media and Lydia, and the Halys (Kizil) River was fixed as the boundary between the two kingdoms. Thus a new balance of power was established in the Middle East among Medes, Lydians, Babylonians, and, far to the south, Egyptians.