The Kabul Shahi dynasties also called Shahiya ruled the Kabul Valley (in eastern Afghanistan) and the old province of Gandhara (northern Pakistan and Kashmir) during the Classical Period of India from the decline of the Kushan Empire in the 3rd century to the early 9th century. They are split into two eras the Buddhist-Shahis and the later Hindu-Shahis with the change-over occurring around 870.