 The island remained under shared sovereignty until the signing of the 1875 Treaty of Saint Petersburg, in which Japan surrendered its claims in Sakhalin to Russia.Japanese forces invaded and occupied Sakhalin in the closing stages of the Russo-Japanese War.In accordance with the Treaty of Portsmouth of 1905, the southern part of the island below the 50th parallel north reverted to Japan, while Russia retained the northern three-fifths.