Beylik of Hacıemir (also calledBeylik of Bayram) was abeylik (lordship) in the northAnatolia in a part of 14th and 15th centuries. The historical documents about the beylik are scarce. In some documents the beylik was namedBayramoğulları (Bayran's sons) and in othersHacıemiroğulları (Hacıemir's sons). Hacıemir was Bayram's son. In contemporary Greek documents, the name of the beylik wasChalybia (Greek:Χαλυβία), after the ancientChalybes people who lived in the area.
The beylik population was mostlyChepni people, a branch ofTurkomans.[1] In the 11th and 12th centuries, they were inDanishmend realm. AfterSeljuks of Anatolia conquered Danishmends some of them were settled in other parts of Anatolia. But some stayed in their former land. After the collapse of the Seljuks and the end ofMongol dominance, they founded a number of small beyliks. Beylik of Hacıemir was one of them. Their capital was presentKale village next toMesudiye inOrdu Province.
In the early 14th century, the region was under Mongols and later thebeylik of Eretna. The beylik declared independence during the civil war in Mongol lands (1335-1336). First bey wasBayram. Bayram fought against theEmpire of Trebizond. In 1348 in alliance with several other beys he laid a siege to Trebizond (presentTrabzon), but the coalition was defeated. Bayram's death date is not known. But according to the documents of the Trebizond Empire in 1357 it wasHacıemir, Bayram's son who campaigned toMaçka. However, in 1358 by marrying Theodora, daughter ofBasil of Trebizond, he formed family relations with the Trebizond Empire. But in 1361 he organized a campaign to captureGiresun which ended in failure.[2] He formed alliance with the powerful warlordKadı Burhaneddin. With this support, Hacıemir was able to captureOrdu (ancientCotyora) on theBlack Sea coast in 1380. The new capital of the beylik was in the village ofEskipazar now a suburb of Ordu.
In 1387, Hacıemir fell ill and bequeathed his beylik to his sonSüleyman. However, he recovered and tried to regain his possessions. This caused a civil war between the father and the son. AlthoughTacettin, the ruler of a neighboring beylik, attacked to take advantage of the civil war he was defeated and killed in battle. In 1397 Süleyman capturedGiresun (ancientKerasous ).[2]
After the death of Kadı Burhanettin, Süleyman accepted the suzerainty of theOttoman Empire. Although the Ottomans were defeated in theBattle of Ankara and the beylik of Hacıemir experienced the second term of independence, it never gained its former glory. In 1427 Ottomans annexed the beylik.[2]