China has border and maritime disputes, including with Vietnam in the Gulf of Tonkin and with Japan. Beijing has resolved many of these disputes. Notably on 21 July 2008, Russia finally resolved the last remaining border dispute along the 4300 km border between the two countries by ceding a small amount of territory to China. China also reached a 2000 agreement with Vietnam to resolve some differences over their maritime borders, though disagreements remain over some islands in the South China Sea.