According to the Book of Jubilees, Mastema is the chief of the demons engendered by the Watchers/fallen angels with women. His actions and name indicate he is the Satan, the "Adversary", but in these religious works Satan is more like him who appears in the Book of Job with a function to fulfill under God than like Satan of later tradition who is the uttermost enemy of God. Beliar, mentioned twice in Jubilees, is likely to be identical with Mastema in this work. When God is ready to destroy all these demons after the flood and Noah prays that his descendants be released from their attacks, Mastema intervenes, beseeching God to allow him to retain and control one tenth of these demons in order to exercise his authority because they are "intended to corrupt and lead astray before my judgement because the evil of the sons of men is great". Mastema is the tester of humans, with God's permission. Mastema sends a plague of birds onto the land in the days of Terah. Later, Mastema counsels God to test Abraham, just as Satan in the book of Job wants permission to test Job. As Abraham prepares to sacrifice his son Isaac, Mastema stands in God's presence. On his deathbed, Isaac promises that the spirits of Mastema will have no power to turn Jacob or his descendants away from Yahweh. The strange account in where Yahweh meets Moses by the way and tries to kill him is retold in a way that attributes the attack to Mastema instead. It is claimed that Mastema aided the Egyptian priests that opposed Moses. Mastema is also said to have been chained while the Israelites left Egypt, but then let go to encourage the Egyptians to chase after the Israelites and so come to their doom in the Red Sea. The deaths of the firstborn of the Egyptians are attributed to "all the powers of Mastema".
In the Megami Tensei series of video games and its spin-offs, Mastema is portrayed as a demon, although, within the context of the franchise, the term "demon" is used in its classical meaning to refer to any supernatural creature. Mastema can be fought but can also join the player's group. In, Mastema plays a relatively big role in the story.
In the Digimon game,, Mastemon is an Angel Digimon who manipulates light and darkness, and has the power to cross through space-time.
In the comic book Birthright, Mastema is the name of one of the mages living on Earth that maintain the barrier between worlds. She is revealed shortly after her introduction to be the daughter of the series' main villain.
In Dorohedoro the city of Mastema is the place in which everyone present was transformed into mushrooms years before.