▁Secretary ▁of ▁the ▁United ▁States ▁Leg ation ▁to ▁China . ▁During ▁his ▁stay ▁in ▁China , ▁he ▁wrote ▁A ▁T onic ▁Dictionary ▁Of ▁The ▁Chinese ▁Language ▁In ▁The ▁C anton ▁Dia lect ▁( 英 華 分 <0xE9> <0x9F> <0xBB> <0xE6> <0x92> <0xAE> 要 ) ▁in ▁ 1 8 5 6 . ▁After ▁years ▁of ▁opposition ▁from ▁the ▁Chinese ▁government , ▁Williams ▁was ▁instrument al ▁in ▁the ▁neg ot iation ▁of ▁the ▁Tre aty ▁of ▁T ient sin , ▁which ▁provided ▁for ▁the ▁toler ation ▁of ▁both ▁Chinese ▁and ▁foreign ▁Christians . ▁ ▁In ▁ 1 8 6 0 , ▁he ▁was ▁appointed ▁charg é ▁d ' aff aires ▁for ▁the ▁United ▁States ▁in ▁Be ij ing . ▁He ▁res igned ▁his ▁position ▁on ▁October ▁ 2 5 , ▁ 1 8 7 6 , ▁ 4 3 ▁years ▁to ▁the ▁day ▁that ▁he ▁first ▁land ed ▁at ▁Gu ang z hou ▁in ▁ 1 8 3 3 . ▁Ar ound ▁ 1 8 7 5 , ▁he ▁completed ▁a ▁translation ▁of ▁the ▁Book ▁of ▁Gen esis ▁and ▁the ▁G ospel ▁of ▁Matthew ▁into ▁Japanese , ▁but ▁the ▁manuscript s ▁were ▁lost ▁in ▁a ▁fire ▁before ▁they ▁could ▁be ▁published . ▁ ▁He ▁returned ▁to ▁the ▁United ▁States ▁in ▁ 1 8 7 7 ▁and ▁became ▁the ▁first ▁Professor ▁of ▁Chinese ▁language ▁and ▁literature ▁in ▁the ▁United ▁States ▁at ▁Y ale ▁University . ▁Williams ▁was ▁nominated ▁as ▁president ▁of ▁the ▁American ▁Bible ▁Society ▁on ▁February ▁ 3 , ▁ 1 8 8 1 .