He finished the season ranked world number six. At the 2018 Six-red World Championship, Ding defeated Luca Brecel 7–6 in the semi-final, but lost to Kyren Wilson 8–4 in the final. At the 2018 Shanghai Masters, he won his second round match 6–3 against Mark Allen. He then beat Mark Selby 6–5 in the quarter-final, before losing to Barry Hawkins 10–9 in the semi-final. In January 2019, Ding participated in the Masters, beating Jack Lisowski 6–1 in the first round and Luca Brecel 6–5 in the quarter-final. He lost to Ronnie O'Sullivan 6–3 in the semi-final. At the 2019 German Masters, Ding defeated Fergal O'Brien 5–3 in the last 32 and Xiao Guodong 5–4 in the last 16. However, he lost to Duane Jones 5–3 in the quarter-final. At the 2019 World Snooker Championship, Ding beat Anthony McGill 10–7 in the first round, but lost to Judd Trump 13–9 in the second round. His end-of-season world ranking was ten. In the 2019–20 season, Ding and compatriot Yan Bingtao participated in the World Cup. They beat Andy Lee and Cheung Ka Wai 4–0 in the quarter-finals, before losing 4–1 in the semi-finals to eventual winners John Higgins and Stephen Maguire. Ding reached the quarter-finals of the 2019 International Championship. At the 2019 Six-red World Championship, he reached the quarter-finals, losing to Gary Wilson after a 5–4 lead. At the 2019 UK Championship, Ding beat Ronnie O'Sullivan 6–4 in the last 16. He defeated Liang Wenbo in the quarter-finals and Yan Bingtao in the semi-finals, both by 6–2. In the final, Ding beat Stephen Maguire 10–6, clinching his third UK title and his first since 2009. His win made him the fifth player to win the UK title three or more times, and it was his first ranking event win since 2017. Throughout the competition, Ding compiled ten century breaks, including four during the final. Following the event, his ranking increased seven spots to ninth. Ding won three consecutive ranking tournaments in 2013. In Triple Crown events, he has reached the World Championship finals once, becoming the first Asian player to reach the final of the World Championship in 2016 before losing to Mark Selby 14–18.