The Kabul Shahi dynasties ruled the Kabul Valley and Gandhara (modern-day Pakistan and Afghanistan) from the decline of the Kushan Empire in the 3rd century to the early 9th century. The Shahis are generally split up into two eras: the Buddhist Shahis and the Hindu Shahis, with the change-over thought to have occurred sometime around 870. The kingdom was known as the Kabul Shahan or Ratbelshahan from 565-670, when the capitals were located in Kapisa and Kabul, and later Udabhandapura, also known as Hund for its new capital.
Until what century did the Kabul Shahi dynasties rule the Kabul Valley? The decline of what empire allowed the rule of the Kabul Shahi empire? How many eras are the Shahis divided into? When did the Shahis switch from Buddhist to Hindu? What was the kingdom of the Shahis called?