Complex sentence: The area was fully annexed by Russia by the Treaty of Gulistan in 1813 and the khanate was abolished in 1819 and in its place the Shaki province was established.
Split into simpler sentences: The area was fully annexed by Russia by the peace agreement of Gulistan in 1813. The khan ruling system was abolished in 1819 and in its place the Shaki province was established.