In China, despite not taking direct part in the Second Opium War, the Buchanan administration won trade concessions. The president relied on William Bradford Reed (1806–1876) his Minister to China in 1857–58. A former Whig, Reed had persuaded many old-line Whigs to support Buchanan in the 1856 campaign. The Treaty of Tientsin (1858) granted American diplomats the right to reside in Peking, reduced tariff levels for American goods, and guaranteed the free exercise of religion by foreigners in China. Reed developed some of the roots of the Open Door Policy that came to fruition 40 years later.