qnli question: When was the Battle of Hakusukinoe? sentence: Following the Battle of Hakusukinoe against Tang China and Silla in 663 AD that led to a Japanese retreat from Korean affairs, Japan underwent widespread reform.