They consolidated their military power and began to expand their territory.