According to popular legend, in the 3295th year of Adam, 597 BCE, the Babylonian King Nebuchadnezzar invaded Jerusalem and carried off into captivity twenty percent of the elite aristocracy of Israel, including the royal family and king, King Jeconiah. As there were no living heirs to King Jeconiah, Nebuchadnezzar installed Jeconiah’s uncle, Prince Zedekiah, as new king for the remaining population. At that time, Nebuchadnezzar installed Zedekiah as the new King of Israel in hopes he would rule Judaea in a more civilized manner than his predecessor.
Unfortunately, Zedekiah only obstructed justice and deliberately sought to thwart Babylonian authority by seeking a military alliance with Egypt. And so, twelve years after their initial invasion, Nebuchadnezzar returned to Jerusalem and in front of King Zedekiah killed every one his sons before blinding him and carrying him off to Babylon, where he soon died.
Nebuchadnezzar also destroyed the Temple of Jerusalem at this time. This was in 586 BCE. Legend has it, only one child of King Zedekiah remained alive, a daughter, Princess Tamar (also referred to as Tea Tephi).
Also according to legend, Jeremiah saved Princess Tamar, who was the last surviving heir to the throne of Israel, and took her to ancient ancestors of the Hibaru/Hebrews in Ireland. These were the famed Holly (Holy) family. Jeremiah also brought with them the ‘Ark’, the Stone of Destiny, the Harp of David, and the sword of Solomon. In Ireland, the land of Tamar’s ancestors, Princess Tamar wed King Enochaid. He too was Hibaru and from the line of Judah/David, which made the union ‘legal’ and their offspring heirs of King David and thus successors to the throne of Judaea/Israel.
Note: Now it could be argued (and was), that King Jeconiah who being held hostage in Babylon, was still the King of Israel in Exile once King Zedekiah died since his male heirs had been executed. However, King Zedekiah and his second wife, Queen Tamar, had only one child, a son also named Zedekiah. Unfortunately, Zedekiah died as a young boy and had no heirs. King Jeconiah and Queen Tamar had no other children together; however, she did have seven sons by a previous marriage to a man named Neriah. Jeconiah adopted these children, and it was their descendents who went on to rule Israel once they were out of captivity.
Now the grandson of Jeconiah was a man named Prince Sheshbazzar, also known in Babylon as Zerubabbel (man descended of Babylon). Prince Sheshbazzar/Zerubabbel was the son of Prince Shealtiel, who was the eldest of his King Jeconiah's adopted sons by his wife, Queen Tamar. Zerubabbel was also known as the Persian Governor of Judaea while in exile in Babylon.
While he was still in captivity, Zerubabbel married three times. First to a Babylonian Princess named Amytis. This union began what was called the Abiudite Dynasty Lineage of Davidian royals. The second marriage of Zerubabbel was to a Persian Princess named Rhodah. This union began what was called Rhesaite Dynastic Lineage. Zerubabbel's third marriage was to a Jewish Princess named Esthra, which produced a number of dynastic Davidian lines including the Meshullamite Jerusalem Patriarch Dynastic Line which broke off into the Tobaite and Onaidite Lines, the Pelatiahite Anti-king Dynastic Line, and the Babylonian Exilarch Dynastic Line.
When the Israelites were released from captivity and allowed to return to Judaea in 538 BCE, the Israeli Davidian royal line continued through the first son of Zerubabbel's first marriage or the Abiudite Dynasty Lineage. That is, until Ezra, along with Nehemiah, was sent to Jerusalem by the Persian King to help rebuild it and reconstitute the Jewish religion itself around 445 BCE. It was at this time that Ezra did a full genealogy of the royal family and decreed that Zerubabbel's marriages to non-Jewish women were not ‘legal’. He forced both of these marriages to be annulled/divorced and declared that only Zerubabbel's third marriage to the Jewish Princess Esthra was legal.
Therefore, it was the Tobaite and Onaidite dynastic lineage which ruled (or held rank as Davidian royals) in Israel from around 445 BCE until 37 BCE.
In 37 BCE, due to the previous Hasmonean dynasty’s insatiable greed for power and control of the Jewish state, combined with their jealousy and hatred of each other that they managed to destroy enough of the ‘legal’ Davidian lineage to the point of near extinction. For this reason, (and because Herod, the Idumaean who had recently been named King of Judaea, had married a woman (Doris) from the Abiudite Line where there had been an issue concerning her specific claim to the noble bloodline), the Great Sanhedrin met at the request of Herod, and incredulously reversed Ezra’s decision of the legitimacy of Zerubabbel's first two marriages to the Babylonian and Persian princesses. They declared that both of these first two marriages were in fact legal, and that the their heirs were now legal heirs and entitled to become nazis and gain the Davidian throne of Judaea/Israel. The Abiudite and Rhesaite Dynastic Lineages had just been declared legal.
Note: Joseph of the bible is from the Abiudite Davidian line; Mary is from the Rhesaite line. Both lines are quoted in the bible’s New Testament as proof that Jesus is from the ‘legal’ line of King David.