It’s often assumed that Jesus was killed for declaring himself the Messiah, because such a declaration was “illegal” in Jewish religion. But this is certainly not the case.
There are at least twenty examples where human beings in the ancient Jewish context, before and after Jesus, that were called the Messiah, and none were killed by the Jewish religious leaders (while many were indeed killed by political rulers scared of an usurper taking their kingdom).
A few of these Messiahs were even affirmed by the masses or important Hebrew religious leaders.
a. One example is from the famous Cyrus prophecy of Isaiah 45 which refers to the Persian king Cyrus the Great at the Lords Anointed (messiah). Cyrus is called the messiah by Isaiah for he liberates the Jews in exile and returns them to their home.
b. A second example is Judas Maccabeus who led a successful revolt against the Greek Seleucid empire that occupied Jerusalem. Many Jews considered Maccabeus to be the Messiah and the “Prince of princes” alluded to in the book of Daniel.
c. A third example is Simon bar Kokhba a Messiah claimant who was born a few decades after Jesus. His surname, “Bar Kokhba” meant “Son of the Star” in Aramaic, from the Star Prophecy verse in Numbers 24:17- “There shall come a star out of Jacob.” And he was thought to be the Messiah by at least a leading Jewish leader, Rabbi Akiva