During the reign of the second king, David, the Israelites conquered Jerusalem and established it as their national and religious capital.