洋務運動
In 1875, Li Hongzhang recruited Ding to be a commander of the Beiyang Fleet, the most modern of China's regional navies. In 1880, he travelled to Newcastle upon Tyne in Great Britain to accept delivery of the cruiser Chaoyun where he was photographed by Newcastle-based photographer H.S. Mendelssohn. He also visited Germany and France to familiarize himself with their shipbuilding techniques. Ding was a supporter of the Self-Strengthening Movement in China, and urged Li Hongzhang to create shipyards in China able to build modern armored cruisers, rather than relying on foreign imports. Ting took an active role in the creation of the naval bases at Weihaiwei and Lushunkou.