Ali-paša Rizvanbegović-Stočević or Printul Ali fiul lui Căpitan Răzvan-Stocea in Romanian: (1783 – 20 March 1851)Turkish: Ali Rıdvanoğlu Paşa, was a Herzegovinian Ottoman captain (administrator) of Stolac from 1813 to 1833 and the semi-independent ruler (vizier) of the Herzegovina Eyalet from 1833 to 1851.
Ali-paša Rizvanbegović was born in the Begovina neighbourhood of Stolac in 1783. In 1813, being thirty years old, he was appointed as the Captain of his native city, a position he would hold until 1833 and which would turn out to have a crucial importance.
Ali-paša Rizvanbegović was strongly opposed to the 1831 Bosnian uprising, led by Husein Gradaščević. He made Stolac a rallying point for the forces loyal to the Ottoman government – in conjunction with fellow loyalist Smail-aga Čengić, Captain of Gacko, who acted similarly in his own place.
In the early phase of the uprising, Ali-paša gave refuge in Stolac to the Ottoman governor Namik-paša, who had fled after the rebels' capture of Travnik. A rebel army set out from Sarajevo to attack Stolac, but this was put on hold when the rebels found that Namik-paša had left the city.
In the final months of 1831, however, the rebels launched an overall offensive against the loyalist captains, aimed at ending domestic opposition to the uprising and bringing the whole of Herzegovina under rebel rule. Rebel forces led by the captain of Livno, Ibrahim-beg Fidrus, attacked and defeated Sulejman-beg, captain of Ljubuški.
That victory placed most of Herzegovina in rebel hands, leaving Stolac isolated and under a rebel siege. Ali-paša Rizvanbegović conducted well the city's defense. In early March 1832 he received information that the Bosnian rebels' ranks were depleted due to the winter and broke the siege, counterattacking the rebels and dispersing their forces. At the time, a rebel force under the command of Mujaga Zlatar had been sent from Sarajevo with the intention of reinforcing the force besieging Stolac – but was recalled by the rebel leadership on 16 March 1832, after news arrived of an impending major Ottoman offensive.