After Gideon (nicknamed Jerubbaal) defeated Midian to rescue Israel, the Israelites wanted to make him king, but the narrator tells us that he refused. Interestingly, he named one of his sons Abimelech, which means "son of the king." This suggests that there may be two different stories about Gideon and in one of them he does become king. Abimelech embraces his name, kills all his brothers and begins to rule an area of Israel. With a beginning like that, it's no surprise Abimelech's reign doesn't end well.
God doesn't forbid Israel to have a king, in fact the closing stories in Judges are all about how too little leadership can be dangerous. At the same time, God does warn the people that power can corrupt, so if they do have a king they have to help him by limiting his power. That's true for every human system; authority and leadership are necessary, but power is dangerous.
Blessings on your day,