Kaleybar
Kaleybar () (); also Romanized as Kalībar, Kalipar, Keleibar, and Keleivar) is a city in the Central District of Kaleybar County, East Azerbaijan province, Iran, and serves as capital of the county.

At the 2006 census, its population was 9,030 in 2,397 households. The following census in 2011 counted 9,887 people in 2,687 households. The latest census in 2016 showed a population of 9,324 people in 2,880 households. Kaleybar is the 25th most populated city of the province.

In recent years, the city has become a tourist destination thanks to its proximity to Babak Castle. In addition, as a result of geopolitical developments Kaleybar is gradually replacing Ahar as the capital city of Qareh Dagh region.

History
Kaleybar, known as Badd or Baddayn (or Badhdh) in Islamic chronicles,  was the stronghold of Babak Khorramdin who, in 816 AD, revolted against Islamic Caliphate. Babak's resistance was ended in 836 when he was defeated by the Iranian General Afshin, acting on behalf of the Caliphate. The events of the two decades long tumultuous times 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, Babak revolted in Bedh region with the deciples of Djavidan ... Following a series of defeats Babak was blockaded in his native town..., which even now is known as Babak's country.

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 Babak's forces.

Yaqut al-Hamawi, writing in early thirteenth century, describes Kaleybar  as the following,  County between Azerbaijan and Erran. This is where  Babek resisted when he rebelled against Mo'taçem. We know these verses Bokhteri

God protects you, great warrior who, in the days of Babak, have reversed the doors of the ungodly;

It is you who have taken their city Bedh that you covered the shamelessness in it.

There was a near Bedd, says the poet Mo'çer, 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-Wearing Ones, also called the Khurramites raised the standard of revolt led by Babak ', this is also they expect EI-Mehdi. At the bottom, flows a large river which has the property of curing the most inveterate fevers. The Arax 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 mid fourteenth 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.

Culture

Rezā Shāh, who deposed Ahmad Shah Qajar in 1925 and founded the Pahlavi dynasty, insisted on ethnic nationalism and cultural Unitarianism and implemented his policies with forced sedentarization of nomadic tribes. He renamed Qaradağ as Arasbaran to deny the Turkic identity of the inhabitants. In recent years, as a reaction to this oppressive acts, there has been an identity-seeking movement which emphasizes on the heroic resistance of Babak. In 1998-2006 period Babak Castle considered a shrine for the movement  and many cultural events were organized near Kaleybar.

Religion
The dominant religion is Shia Islam. However, followers of Yârsân or Ahl-e Haqq constitute an appreciable minority in the town and the surrounding villages. Dr. Mohamad Ali, the only physician of the town until the 1970s, was a member of the Baháʼí Faith.

Language
The spoken language in Kaleybar is Azerbaijani (also referred to as Turkic (). Though, until late seventies the older residents of some neighboring villages (Çaykändi, Kälasor, Xuynärod, Arazin) spoke Tati language, there is no evidence that Tati was ever spoken in Kaleybar. A cleric, the late Haji Mohammad Zakeri, told that the name Kaleybar was indeed a Tati word, meaning a town built on rocks.  Kaleybar region with mountainous terrain, shepherding and cultivation of hillside possess the isolating features for the development of a sophisticated whistled language.  The majority of males are able, and perhaps addicted, to masterfully mimic the melodic sounds of musical instruments using fingerless whistle.Melodic whistling, indeed, appears to be a private version of the Ashug music for personal satisfaction.

Ashugh music
The mountainous region of Qaradağ, due to its remoteness and inaccessibility, was a guardian of Ashugh music.  This frequent allusions of this music to mountains, with the intention of arousing an emotional state with a tone of mild melancholy, is consistent with the geography of Kaleybar. The first verses of an Ashugh song, composed by Məhəmməd Araz, may represent the essence of Ashugh music:

Bəlkə bu yerlərə birdə gəlmədim   (I may not come to these places again)

duman səlamət qal dağ səlamət qal (Farewell to the Mist and to the mountain)

arxamca su səpir göydə bulutlar  (Behind me the clouds sprinkle drops of rain)

leysan səlamət qal yağ səlamət qal (Farewell to summer days, farewell to the rain)

Aşıq Hoseyn Javan, born in Oti Kandi near Kaleybar,  is the legendary Ashik who was exiled to Soviet Union due to his revolutionary songs during the brief reign of Azerbaijan People's Government following the World War II. Hoseyn Javan's music, in contrast to the contemporary poetry in Iran, emphasizes on realism and beauties of real life in line with the mainstream world view of Arasbaran culture.

Potential for tourism
James Morier, the author of "The Adventures of Hajji Baba of Ispahan", travelling through Kaleybar in early 19th century described the city in the following words, "Kaleybar... was formerly a considerable place. Its extensive gardens have become a forest of fruit-trees, where the walnuts grow to an immense size..." More recently, Jamie Maslin, a Canadian traveler write, " ... was surrounded by steep green mountains, the peaks of which remained unseen, shrouded in a slowly drifting mountain mist. It was a great location and once again so very different from most people's perception of Iran - not dry and parched like its central deserts, but as lush and green as merry old mother England."

Zoğal Festival
The micro-climate, generated by the surrounding mountains,  is particularly suited for the production of zoğal (Cornus mas, Persian: زغال اخته, Turkish:Kızılcık). The berries, which ripen in mid to late summer, are sold in numerous small shops alongside the Shahid Ansari Street. The smell of fermenting dark ruby-red fruits and the sight of menacing wasps perching on them is a vivid mental imagery a tourist may get as a lifelong pleasant impression. The local, though, would cherish the landscape of their town mingled with the vivid yellow blossoming zoğal trees in early spring.

The surplus berries will be sun-dried on flat roof tops and sold to the market as an ingredient of Erişte Aşı (Persian: آش رشته). Unfortunately, the local version of this thick soup is not offered in restaurants.

In recent years, the local government has organized Zoğal festivals as a means of promoting tourism.

Babak Castle 
The relatively well preserved Babak Castle at an altitude of 2300 m is located is located some 3 km of the town. This Sasanid era fortress is named after the ninth century Iranian resistance leader, Babak Khorramdin., who resisted Arab armies until year 839.

Summer camp of Arasbaran Tribes
The mountain ranges south-west of Kaleybar are still used as summer camp of pastoralists belonging to Arasbaran Tribes. This provides an opportunity for observing the relaxed idyllic life style of bygone times. Pastoralists, despite their simple life style during summer months, are often well-educated folks and own modern dwelling in their winter quarters. They, generally, welcome visitors as long as  their cultures and mode of life is not ridiculed. The visit should be made on sunny days when the shepherd dogs feel lethargic. During foggy days and between  dusk and down dogs regain their vicious character; strangers have to avoid crossing campsite otherwise the attacking dogs cannot be controlled even by their owners. Fending off the dogs by beating is considered an act of aggression towards the owner and should be avoided.

External links
"Kaleybar, Iran" Falling Rain Genomics, Inc.

References 

Kaleybar County

Cities in East Azerbaijan Province

Populated places in Kaleybar County