Kaleybar, known as Bâdd or Bâddayn (or Bâdhdh) in Islamic chronicles, was the stronghold of
Babak Khorramdin who, in 816 AD, revolted against the Islamic
Abbasid Caliphate. Bâbak's resistance was ended in 836 when he was defeated by the Iranian general
Afshin, acting on behalf of the Caliphate. The two decades of tumultuous events subjected the town to the reports of early Islamic historians. The first reference to Kaleybar has been by
Al-Masudi in
The Meadows of Gold,
Bâbak revolted in Bâdh region with the disciples of Jâvidân ... ''Following a series of defeats Bâbak was blockaded in his native town..., which even now is known as Babak's countr''y.
Ibn Athir in his book,
The Complete History, has devoted many pages to the description of battles which took place in Kaleybar between the Armies of
Caliphate and Bâbak's forces.
Yaqut al-Hamawi, writing in early thirteenth century, describes Kaleybar as the following, ''County between Azerbaijan and Arân. This is where Bâbak resisted when he rebelled against the Abbasid
caliph Mu'tasim. We know these verses Buhturi''
God protects you, great warrior who, in the days of Bâbak, have reversed the doors of the ungodly; It is you who have taken their city Bâdh that you covered the shamelessness in it. ''There was near Bâdh, says the poet Mu'sir, a place of an area of about three acres, every time we say the name of God, a hidden voice responds. This is where the Red-clothed, also called the
Khurramites raised the standard of revolt led by Bâbak ', this is also because they expect The
Mahdi. At the bottom, flows a large river which has the property of curing the most inveterate fevers. The
Araxes river flows on the border. This county produces pomegranates of incomparable beauty, excellent figs and grapes that are dried on fires (because the sun is always obscured by thick clouds).''
Hamdallah Mustawfi, writing in the mid-14 century, mentions Kaleybar as,
A village of Azerbaijan, in the woods near a mountain which comprises a fortress. Below flows a river. The country produces wheat and fruit, and its inhabitants, who are Turks or Mongols, follow the rite of Schafey. Kaleybar, perhaps, suffered enormously during
Russo-Persian War (1804–13) and
Russo-Persian War (1826–28) due to its proximity to the war zone. Moreover, through the involvement of
Arasbaran tribes in armed conflicts during the
Persian Constitutional Revolution, Kaleybar should have experienced a tumultuous period. The period has been described in the following books, which are dedicated to the contemporary history of
Arasbaran region. • H. Bayburdi "The history of Arasbaran", • H. Doosti, "The history and geography of Arasbaran", • N. Sedqi, "The contemporary political and social history of Arasbaran", • S.R. Alemohammad, "The book of Arasbaran". • "The Tribes of Qarāca Dāġ: A Brief History" by P. Oberling. ==Demographics==