In 663, near the end of the Korean Three Kingdoms period, the Battle of Baekgang (白村江) took place. The "Nihon Shoki" records that Yamato sent 32,000 troops and 1,000 ships to support Baekje against the Silla-Tang force. However, these ships were intercepted and defeated by a Silla-Tang fleet. Baekje, without aid and surrounded by Silla and Tang forces on land, collapsed. Silla, now viewing Wa Japan as a hostile rival, prevented Japan from having any further meaningful contact with the Korean Peninsula until a far later time. The Japanese then turned directly to China.