In May of the following year, Zhang went to Japan and was introduced to Sun Yat-sen by Liang Qichao.
In 1901, under the threat of arrest from the Qing Empire, Zhang taught at Soochow University for a year before he escaped to Japan for several months.