 Although the first uprising was crushed, it was followed by the Second Serbian Uprising in 1815, which resulted in the creation of the Principality of Serbia, as it gained semi-independence from the Ottoman Empire in 1817.Between July and October 1806 Petar Ičko, an Ottoman "dragoman" (diplomat) and representative of the Serbian rebels, negotiated a peace treaty known in historiography as "Ičko's Peace".Ičko had been sent to Constantinople twice in the latter half of 1806 to negotiate peace.