By the 7 th and 8 th centuries BC  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