The Talmud is a legal commentary on the Mishnah, in two versions, Jerusalem and Babylonian, published between the fifth and seventh centuries, often embodying older material (and often not).