King David became king of Israel around 1000 BCE and reigned during Israel's golden age. Some of his accomplishments included unifying Israel by capturing Jerusalem and making it his capital, and leading successful military campaigns that secured Israel's borders. David was originally a shepherd who learned fighting skills defending flocks, and he famously killed the giant Goliath in battle, gaining favor with the people. After being anointed king of Judah upon the death of Saul, David went on to capture Jerusalem from the Jebusites and establish it as his new capital, bringing the Ark of the Covenant there. Though both David and Saul sinned, the key difference was that David repented of his sins after being confronted by Nathan,