The Mishnah, compiled around 200 CE, is the first written recording of the oral Torah and forms the foundation of Jewish law. The Talmud, developed later, expands on the Mishnah with rabbinic discussions on its laws, ethics, and customs. Essentially, the Talmud includes the Mishnah and the Gemara, its commentary, making it a more comprehensive text.