They were founded in 1539 to serve as a countermeasure against Ottoman incursions inside Croatian territory.
[1] Throughout the 16th century Croatia and Slavonia suffered from frequent Ottoman martolos raids.
[3] Haramijas would then be deployed in Croatian-Slavonian forts throughout the country in order to pursue and intercept any Ottoman martolos, which they would encounter.
[4] After foundation of Ban's Frontier, haramije became integrated in its defense system.
Non-paid members of people's army, who guarded Slavonian borders facing the Ottoman Empire were also dubbed as Haramijas.