David was the second king of Israel, a warrior, poet, and central figure in the history of God's covenant people. The youngest son of Jesse, he was anointed by Samuel while Saul was still king and rose to prominence after defeating Goliath. David eventually united the tribes, established Jerusalem as his capital, and brought the ark of the covenant there. God promised that David's royal house would have an enduring place in His purposes. David was also deeply flawed: his adultery with Bathsheba and arrangement of Uriah's death brought severe consequences. Nevertheless, Scripture remembers him as a man devoted to God, and the promised Messiah is repeatedly identified as the Son of David.