According to the narrative from the Devi Mahatmya of the Markandeya Purana, Durga was made by the gods as a warrior goddess to fight a demon. The demon's father, Rambha, king of the demons, once fell in love with a water buffalo, and Mahishasur was born from this union. He is therefore able to change between human and buffalo form at will (mahisha means "buffalo"). Through intense prayers to Brahma, Mahishasura was given the boon that he could not be defeated by any man or god. He unleashed a reign of terror on earth, heaven and the nether worlds. The gods, realizing that only a woman or goddess could defeat the buffalo demon, gave forth all of their creative energy and created Durga. Durga, holding many weapons, went to battle with Mahishasur and won, saving the gods and men from destruction.