The Talmud is a written compendium of oral law, completed by about the fifth century, and is composed of the Mishnah and the Gemarah, a commentary on the Mishnah. It exists in two versions, the more authoritative Babylonian Talmud and the Palestinian or Jerusalem Talmud.