China and Canada are feuding over the arrest and detention of Meng Wanzhou, the CFO of Chinese tech giant Huawei, in Canada in early December.

Beijing detained two Canadians on vague national-security charges shortly after, in what is widely seen as retaliation. Canada has been calling for their release.

China's ambassador to Canada wrote in a Wednesday op-ed that Meng's arrest was "groundless."

She said that Canada's demands show "Western egotism and white supremacy."

Beijing's ambassador to Canada accused Ottawa of showing "Western egotism and white supremacy" in the detention of Meng Wanzhou, the CFO of Chinese tech giant Huawei.

Lu Shaye was responding to Canada's demands for the immediate release of two Canadians, former diplomat Michael Kovrig and entrepreneur Michael Spavor, who were detained in China last month on vague claims that they threaten Chinese national security.

The detentions are widely viewed as Beijing's retaliation against the arrest and detention of Meng, who is the daughter of Huawei's founder as well as its current Chief Financial Officer.

Canada arrested her after a request from the US.

Canadian authorities arrested Meng Wanzhou, the CFO of Chinese tech giant Huawei, last month. China detained two Canadian citizens shortly after the arrest. Huawei

Canada has called for Kovrig and Spavor's release multiple times.

Canadian Prime Minister Justin Trudeau discussed their "arbitrary detention" in a recent phone call with US President Donald Trump, according to a statement from his office carried by CTV News.

US Secretary of State Mike Pompeo also called on China to end the "unlawful detention" of the two Canadians in a joint press conference with his Canadian counterpart Chrystia Freeland last month.

Meng is suspected of violating US sanctions on Iran, and of misleading banks and investors regarding a second company that was making sales to Iran.

Writing in Canada's The Hill Times on Wednesday, Lu also appeared to confirm that China is detaining the two Canadians because of Meng's detention, referring to it as "self-defense."

Read more: The United States is using a presentation Huawei CFO Sabrina Meng Wanzhou gave to HSBC to argue she's guilty of breaching sanctions

Lu Shaye, China's ambassador to Canada pictured in Ottawa in December 2018, accused Canada of "Western egotism and white supremacy" in a Wednesday op-ed. Chris Wattie/Reuters

Lu said: "They [Canadians] said that by arresting two Canadian citizens as retaliation for Canada’s detention of Meng, China was bullying Canada. To those people, China's self-defense is an offence to Canada."

"The reason why some people are used to arrogantly adopting double standards is due to Western egotism and white supremacy."

"In such a context, the rule of law is nothing but a tool for their political ends and a fig leaf for their practising hegemony in the international arena."

Meng is suspected of violating US sanctions on Iran and of misleading banks and investors regarding a second company that was making sales to Iran. Here, a drawing of Meng at her bail hearing on December 7 in British Columbia's Supreme Court. Reuters/Jane Wolsak

China often arbitrarily imprisons or disappears people who speak up against the regime.

The country has also used flimsy excuses to detain members of the Uighur community, a majority-Muslim ethnic minority living in its west.