Context: 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.

Question: Until what century did the Kabul Shahi dynasties rule the Kabul Valley?
Answer: 9th century

Question: The decline of what empire allowed the rule of the Kabul Shahi empire?
Answer: Kushan

Question: How many eras are the Shahis divided into?
Answer: two

Question: When did the Shahis switch from Buddhist to Hindu?
Answer: 870

Question: What was the kingdom of the Shahis called?
Answer: Kabul Shahan