The ayutthaya dynasty adopted a tolerant attitude towards the chinese, allowing them to trade and live freely throughout thailand. In 1767, the ayutthaya dynasty was invaded and occupied by burma. At this time, zheng xin, who was of chinese descent, led the thais to expel the burmese army, unified thailand, and established the thonburi dynasty (1767-1782), and appointed many chinese to hold important official positions. At the same time, he encouraged the chinese immigrated to thailand and reused merchants from chaozhou.
In 1781, zheng xin went to china to pay tribute and returned to thailand. After being killed by his subordinates, he established the chakri dynasty (1782-). In the early days of the chakri dynasty, the tributary trade with china was still maintained. After the bowring treaty was signed in 1855, the door to free trade in thailand was opened. In addition, china was company logo design faced with the opium war and the taiping rebellion. Immigration has increased substantially. In 1868, rama v chulalongkorn (1868-1910) ascended the throne, continuing the policy of tolerance in the past, adopting a weakening of the identity of the chinese, hoping to gradually guide the chinese to be loyal to thailand.
However, in the late 19th and early 20th centuries, chinese nationalism began to affect thailand's attitude towards the chinese. In 1909, the qing dynasty enacted a nationality law based on humanism, and established the attitude of overseas chinese to belong to the qing empire. Sun yat-sen also came to thailand to promote the importance of overthrowing the qing dynasty through revolution, and founded chinese schools and newspapers. Nationalism from china also caused rama vi (1910-1925) to worry about changing his previous tolerant attitude towards the chinese.