The golem was brought to life to perform a variety of tasks, including defending Jews from their gentile enemies. In theory, a golem came to life when God’s secret name, with the letters arranged in the correct order, was put into its mouth; it was deactivated by reversing the name. But a golem occasionally got out of hand and ran amok–thereby generating a new layer of terror-tales.