Jewish messianism has its root in the apocalyptic literature of the 2nd century BCE to 1st century BCE, promising a future "anointed" leader or Messiah to resurrect the Israelite "Kingdom of God", in place of the foreign rulers of the time.
Judaism at this time was divided into antagonistic factions.