The conquest of Jerusalem was part of a campaign by King David to unify the twelve tribes.