The Sino-Portuguese Treaty of Peking was a trade unequal treaty between the Kingdom of Portugal and the Qing dynasty of China, signed on 1 December 1887. It is counted by the Chinese as among the unequal treaties in the aftermath of the Second Opium War. The treaty gave Portugal perpetual colonial rights to Macau on the condition that Portugal would cooperate in efforts to end the smuggling of opium.