The siege of Travnik was a siege in the seat of the Bosnia Eyalet that took place in 1831, commanded by the Bosniak military general Husein-kapetan Gradaà ¡ÃÂeviÃÂ, seeking to gain the autonomy of Bosnia, to return the Bosnian nahiye given to the Principality of Serbia by the Sultan and to abolish the ayan reforms.
Gradaà ¡ÃÂeviàwith his loyalists set out from Tuzla to march to Travnik, reaching the city on the 26 March 1831 with 4,000 men, which had been the seat of the Bosnia Eyalet and its governor. Gradaà ¡ÃÂeviàhad called Namik Pasha to surrender the city and to join his cause calling him to recnognise the Autonomy of Bosnia, Namik Pasha stayed in the city walls calling upon two of his loyalists Mustafa-paà ¡a Sulejmanpaà ¡iàand his brother Osman-beg Sulejmanpaà ¡iÃÂ. Gradaà ¡ÃÂeviàhad fired cannons onto the city, calling its people and viziers to join his army, Memià ¡-beg BajramoviÃÂ, one of Husein-kapetan's generals defeated the Sulejmanpaà ¡iàbrothers, who had commanded an army of 2,000 men, the city soon fell to the hands of the autonomists on the 7 April after a great battle, Morali Namik Pasha was captured and had agreed upon the deals of the Bosniaks and recognised the autonomy of Bosnia, Namik Pasha had burned the new nizam uniforms and was ordered to wear the traditional uniforms of the viziers. Upon the request of the autonomists, Namik Pasha had sent a sanction to the Sultan in Constantinople, requesting that Mahmud II recognise Bosnian autonomy. Although Namik Pasha did allegedly recognise the rule, he fled the city on the 21st of May to reach Stolac, whose capitan was Ali-paà ¡a RizvanbegoviÃÂ, a Bosniak noble loyal to the Ottoman Sultan.