Jewish views on slavery are varied both religiously and historically. Judaism's ancient and medieval religious texts contain numerous laws governing the ownership and treatment of slaves. Texts that contain such regulations include the Hebrew Bible, the Talmud, the 12th-century Mishneh Torah by rabbi Maimonides, and the 16th-century Shulchan Aruch by rabbi Yosef Karo. The original Israelite slavery laws found in the Hebrew Bible bear some resemblance to the 18th-century BCE slavery laws of Hammurabi. The regulations changed over time. The Hebrew Bible contained two sets of laws, one for Canaanite slaves, and a more lenient set of laws for Hebrew slaves. From the time of the Pentateuch, the laws designated for Canaanites were applied to all non-Hebrew slaves. The Talmud's slavery laws, which were established in the second through the fifth centuries CE, contain a single set of rules for all slaves, although there are a few exceptions where Hebrew slaves are treated differently from non-Hebrew slaves. The laws include punishment for slave owners that mistreat their slaves. In the modern era, when the abolitionist movement sought to outlaw slavery, supporters of slavery used the laws to provide religious justification for the practice of slavery.