How did ancient kingdoms decide who should be the king?

Even in hereditary monarchies, every dynasty must have a founding member. How did the choose the first king in a dynasty?
7 answers 7