Samuel's sons are no good so the people want a king like everyone else, thus beginning the kingdom of Israel.  God warns what a king will be and has Samuel appoint Saul.