However, their behavior was a violation of China's Law on Penalties for Administration of Public Security, which prohibits public nudity.
They were thus detained for two weeks before being deported back to Japan.
The incident has sparked significant outrage in China and heated discussions among netizens in both countries.
While some Japanese netizens shared their shame over the tourists' behavior at a historical site, others reminded that such actions are often criticized when committed by foreign tourists.