Complex sentence: The town was founded in 1870 as a military post, after the Russo-Japanese War of 1904-05, the town was transferred to Japanese control, along with the rest of southern Sakhalin, under the Treaty of Portsmouth.
Split into simpler sentences: The town was founded in 1870 as a military post. After the Russo-Japanese War of 1904-05, the town was transferred to Japanese control, along with the rest of southern Sakhalin, under the Treaty of Portsmouth.