Rashi wonders why Ezra mentions the seemingly shameful incident of Yehuda and Tamar. Perhaps the answer is that rather than bringing shame upon Yehuda, this incident actually reveals his true greatness. Everyone, even the great heroes of the Bible, makes mistakes. However, it is to Yehuda’s credit that he recognizes, admits and takes responsibility for his error rather than trying to cover it up, and also refrains from repeating his mistake (Genesis 38:26). This quality of humility is necessary in the forefather of the Davidic dynasty and, ultimately, the Mashiach. Many other nations would have chosen a king with an unblemished background and impeccable lineage, yet king David was a product of a troubling relationship. A powerful lesson can be learned from king David’s humble origins: No matter what one’s background is, all people have the ability to overcome their shortcomings and make a difference in the world.