FILE - In this Jan. 6, 2016, file photo, Chinese Foreign Ministry spokeswoman Hua Chunying speaks during a briefing at the Chinese Foreign Ministry in Beijing. China has denied an accusation by U.S. President Donald Trump that it hacked the emails of Hillary Clinton, his Democratic opponent in the 2016 election. Hua said at a regular briefing Wednesday that "We are firmly opposed to all forms of cyber attacks and espionage." (AP Photo/Ng Han Guan, File)

FILE - In this Jan. 6, 2016, file photo, Chinese Foreign Ministry spokeswoman Hua Chunying speaks during a briefing at the Chinese Foreign Ministry in Beijing. China has denied an accusation by U.S. President Donald Trump that it hacked the emails of Hillary Clinton, his Democratic opponent in the 2016 election. Hua said at a regular briefing Wednesday that "We are firmly opposed to all forms of cyber attacks and espionage." (AP Photo/Ng Han Guan, File)

BEIJING (AP) — China has denied an accusation by U.S. President Donald Trump that it hacked the emails of Hillary Clinton, his Democratic opponent in the 2016 election.

“We are firmly opposed to all forms of cyberattacks and espionage,” foreign ministry spokeswoman Hua Chunying said at a regular briefing Wednesday. She said China is a staunch defender of cybersecurity.

Trump tweeted shortly after midnight that China had hacked Clinton’s emails, without offering any evidence or further information, and suggested that the FBI and Department of Justice should investigate.

ADVERTISEMENT

“Hillary Clinton’s Emails, many of which are Classified Information, got hacked by China. Next move better be by the FBI & DOJ,” he tweeted.

U.S. intelligence agencies have accused Russia of involvement in the hacking of Democratic emails during the 2016 election campaign. The Justice Department has indicted 12 Russian intelligence officers accused of hacking into Clinton’s presidential campaign and the Democratic Party.

Special counsel Robert Mueller is investigating Russia’s role in the election and whether there was any collusion between it and Trump’s campaign.

Hua also denied on Wednesday that China was building a military base in far-eastern Afghanistan after a report published by the South China Morning Post alleged that Beijing was constructing a counterterrorism-focused facility near its border but inside the war-torn Islamic republic.

The report said China’s People Liberation Army could send hundreds of military personnel into Afghanistan after the base is completed.