It is theological speculation that Mary was descended from David, based upon the inference from Scripture that Jesus’ relationship with David appears to be closer than the legal relationship he received through Joseph:
… [T]he gospel concerning his Son, who was descended from David according to the flesh… (Rom. 1:3).
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.