The Battle of Karanovac was a series of skirmishes between the Ottoman mutesellim (mayor) of ÃÂaÃÂak, Latif Agha, with support from the Sanjak of Novi Pazar, against the Serbian rebel army led by Miloà ¡ Obrenoviàin the area of Karanovac (now Kraljevo). Encircled, the Ottoman troops and local Muslims handed over the town to the Serbian rebels after the rebel takeover of ÃÂaÃÂak and Poà ¾arevac.
Prior to the outbreak of the Second Serbian Uprising, the Ottoman mutesellim (mayor) of ÃÂaÃÂak, Latif Agha, moved with 600 ÃÂaÃÂak Ottoman troops to Karanovac where he settled. He stayed at Karanovac, which had a large hillfort, and was tasked with protecting the area from Serbian rebel attacks. ÃÂaÃÂak was left with 600 soldiers and was to be reinforced from Belgrade, as he had requested. For Karanovac, he requested reinforcements from Adem Agha (or "Adem-paà ¡a"), the sanjak-bey of Novi Pazar. From the Takovo Assembly (23 April), Miloà ¡ wrote to Radosav JeleÃÂanin, the Karanovac-born veteran vojvoda (general) in Gornji Ibar and priest Filip Petroviàof Studenica to rise up the people. They sent the civilians to safe refuges and collected rebels in the Poà ¾ega-ÃÂaÃÂak nahiya and Studenica kneà ¾ina. At the same time as ÃÂaja-paà ¡a arrived at ÃÂaÃÂak, some 1,500 Novi Pazar troops (including "Arnauts") under the command of binbaà Âñ Mahmud Agha Ljaja (also the kethüda of Adem Agha) and Yusuf Agha Balja arrived at Karanovac.
The Serbian rebels had prior to this mustered somewhat in the area, seeking to stop the Novi Pazar reinforcement from reaching Karanovac. Radosav JeleÃÂanin was put in charge by Miloà ¡ Obrenoviàto muster an army that would counter both Karanovac and the Novi Pazar troops. JeleÃÂanin sent all women and unfit to the Magliàfortress and put some soldiers around and inside to protect it. Magliàis a medieval fortress located 24 km south of Karanovac. The Novi Pazar troops arrived at Stolovi, where JeleÃÂanin's troops ambushed them, and there was a violent fight in which the Serbian rebels had the upper hand. JeleÃÂanin planned to first deal with the Novi Pazar troops and then to attack Karanovac. Eventually, Latif Agha arrived with many cavalry from the rear of the rebels and attacked, in order to ease the Novi Pazar troops flight to Karanovac. The Serbian rebels were forced to retreat to Magliàafter realizing that the Ottoman troops were more numerous and stronger. The Ottomans pursued the retreating Serbs for a short while and then captured some Serbian refugees further from MagliÃÂ, then returned to Karanovac.
The Serbian rebels immediately encircled Karanovac and held it in siege. Latif Agha, tired from the battle and still in pain from wounds received in the first uprising, died after some days, but the Ottoman troops stayed put. The Turks at Karanovac felt pressured and did not exit into the fields. Both sides were too weak to engage and only monitored each other. Upon the takeover of ÃÂaÃÂak, Miloà ¡ sent vojvoda and knez of DragaÃÂevo, Avram LukiÃÂ, to Karanovac to improve the siege and put pressure. Lukiàput up sentries and ambuscades on all sides, and ensured that Karanovac and the region was unable to receive reinforcements from Bosnia and was safe from incursions. The "Turks" now offered to hand over the town and fortification to Miloà ¡ if they be escorted by the Serbians to Ottoman territory with their weapons. They demanded that the handover be made only with Miloà ¡. After taking over Poà ¾arevac, Miloà ¡ went to Karanovac and was handed over the town and escorted the Turks to Ottoman territory. On his way to Karanovac, Miloà ¡ sent orders to Aksentije Miladinoviàand archpriest Nikola Smiljaniàto go to the Drina where he would join them after taking care of Karanovac. Adem Agha was acquainted with Miloà ¡ and they exchanged letters.