However, following the Second Serbian Uprising from 1815, the town then became part of the autonomous Ottoman Principality of Serbia. Požarevac was the second capital of the Serbian prince, Miloš Obrenović with the first regular state court in Serbia being established here in 1821. Since 1878, Požarevac became part of the independent Principality of Serbia and since 1882 as part of the Kingdom of Serbia.