After seven years he resigned but this time, people elected him as a mighty king.
Deioces build a royal palace in the capital, Ecbatana (modern Hamadan) and reigned for about 50 years.