as for the khurramites they were given this title in relation to the essence and essence of their doctrine which goes back to folding the carpet of obligation and removing the burdens of the law from the worshippers and empowering people to follow pleasures and seek desires and satisfy their desires from permissible and forbidden things. khurram is a foreign word that indicates something that is enjoyable and desirable which a person finds comfort in watching and is moved by seeing. this was a title for the mazdakites who were the people of permissiveness from the magians who excelled in the days of qubadh and permitted women even if they were forbidden and made everything forbidden permissible. they were called khurramidiyya. these were also given this title because they resembled them in the last part of the doctrine even though they differed from them in the introductions and the precedents of the tricks of enticement. as for the babakites it is the name of a group of them who pledged allegiance to a man called babak alkhurami. his uprising took place in some of the mountains in the region of azerbaijan during the days of almutasim biallah. their affair became widespread and their power grew stronger. afshin the companion of almutasims imprisonment fought them flattering him in fighting him and neglecting to seriously suppress him in an attempt to agree with him in his error. the pressure of the babakites on the muslim armies intensified until they tore apart the muslim army and scattered them in defeat until the wind of victory blew. and he took control of them
وأما الخرمية فلقبوا بها نسبة لهم الى حاصل مذهبهم وزبدته فانه راجع الى طي بساط التكليف وحط أعباء الشرع عن المتعبدين وتسليط الناس على اتباع اللذات وطلب الشهوات وقضاء الوطر من المباحات والمحرمات وخرم لفظ اعجمي ينبئ عن الشئ المستلذ المستطاب الذي يرتاح الانسان اليه بمشاهدته ويهتز لرؤيته وقد كان هذا لقبا للمزدكية وهم اهل الإباحة من المجوس الذين نبغوا في ايام قباذ وأباحوا النساء وان كن من المحارم وأحلوا كل محظور وكانوا يسمون خرمدينية فهؤلاء ايضا لقبوا بها لمشابهتهم اياهم في اخر المذهب وان خالفوهم في المقدمات وسوابق الحيل في الاستدراج وأما البابكية فاسم لطائفة منهم بايعوا رجلا يقال له بابك الخرمي وكان خروجه في بعض الجبال بناحية أذربيجان في أيام المعتصم بالله واستفحل أمرهم واشتدت شوكتهم وقاتهلم افشين صاحب حبس المعتصم مداهنا له في قتاله ومتخاذلا عن الجد في قمعه إضمارا لموافقته في ضلاله فاشتدت وطأة البابكية على جيوش المسلمين حتى مزقوا جند المسلمين وبددوهم منهزمين الى أن هبت ريح النصر واستولى عليهم