What was King David the king of?

King David was king of Judah, he succeeded Saul as king. He made the kingdom a mighty empire. and his son King Solomon was equally popular and famous.