He never suspected Mary of any wrongdoing whatsoever. On the contrary, St. Joseph knew he was in the presence of a great mystery. Humble and just, he planned to separate himself from Mary quietly in order not to get in the way of divine mysteries. Before he could take action, however, God sent his angel to remind Joseph of his royal lineage, a lineage needed for the Savior to be considered a descendant of David.