Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

BEIJING — China on Thursday ordered North Korean-owned businesses to close, cutting foreign revenue for the isolated North under U.N. sanctions imposed over its nuclear and missile programs.

China is North Korea's main trading partner, making Beijing's cooperation essential to the success of sanctions aimed at stopping the North's pursuit of weapons technology. China, long North Korea's diplomatic protector, has gone along with the latest penalties out of growing frustration with leader Kim Jong Un's government.

A worker stretches out a bale of cloth at the Kim Jong Suk Pyongyang textile factory on July 31, 2014, in Pyongyang, North Korea. This is the country's largest textile factory with 8,500 workers. Wong Maye-E / AP file

North Korean businesses and ventures with Chinese partners must close within 120 days of the U.N. Security Council's Sept. 11 approval of the latest sanctions, according to the Ministry of Commerce. That would be early January.

North Korean companies operate restaurants and other ventures in China, helping to provide the North with foreign currency. North Korean laborers work in Chinese factories and other businesses.

Also Thursday, China's foreign ministry appealed for dialogue to defuse the increasingly acrimonious dispute between U.S. President Donald Trump's government and North Korea.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Related: North Korea Also Has Nerve Agent VX, Chemical Weapons Expert Warns

"The Korean Peninsula nuclear issue is related to regional peace and stability," ministry spokesman Lu Kang said. "Breaking the deadlock requires all relevant parties to show their sincerity."

China, one of five permanent Security Council members with veto power, supports the latest sanctions but doesn't want to push North Korea too hard for fear Kim's government might collapse.

Chinese leaders argue against doing anything that might hurt ordinary North Koreans. They agreed to the latest sanctions after the United States toned down a proposal for a total ban on oil exports to the North.

Chinese officials complain their country bears the cost of enforcing sanctions, which have hurt businesses in its northeast that trade with the North.

A worker sweeps the floor inside a branch of the North Korean-operated Haedanghwa restaurant in Beijing on Feb. 17, 2016. Mark Schiefelbein / AP file

The latest round of U.N. sanctions bans member countries from operating joint ventures with North Korea, most of which are in China.

They also ban sales of natural gas to North Korea and purchases of the North's textile exports, another key revenue source. They order other nations to limit fuel supplies to the North.

China, which provides the bulk of North Korea's energy supplies, announced Saturday it would cut off gas and limit shipments of refined petroleum products, effective Jan. 1. It made no mention of crude oil, which makes up the bulk of Chinese energy supplies to North Korea and is not covered by the U.N. sanctions.

China also has banned imports of North Korean coal, iron and lead ore, and seafood since early September.

On Thursday, the Ministry of Commerce defended its recent imports of North Korean coal, saying they were permitted by U.N. sanctions.

A ministry spokesman, Gao Feng, said imports that were reported in August trade data were allowed by a "grace period" for goods that arrived before the U.N. ban took effect.

The imports are "in line with the (U.N.) resolution," Gao said.