King of Afganistan

I have recently heard reports that the potential interim rule of Afganistan will be the former King of Afganistan.
I had not heard that Afganistan ever had a King… although it seems as though nearly everyone has had an opportunity to “rule” there for some short amount of time.
What is the history of this dynasty? How did they come to power? When and why were they deposed, and how long did they last as “rulers”?

This link has some useful background info on Zahir Shah, the deposed king of Afghanistan.

A blurb from the story: