David was made king and was given the promise that his descendants would always be kings because of his steadfast loyalty to God.