Another theory is that tofu was introduced into Japan by a Japanese envoy to the Tang Dynasty of China in the Nara period, but it's very possible that tofu was introduced prior to that time.
日本へは奈良時代に遣唐使によって伝えられたともされるが、それ以前に伝わっていた可能性も大きい。