By the 7th and 8th centuries B.C., the role of the chariot in battle was gradually being replaced by cavalry units in the Near East. Some were armed lightly and were used to harass the enemy from afar with missiles or to pursue routing troops. Other types of cavalry units were heavily armed, and were used as shock troops to break enemy formations.