Beijing sent a message of condolence and support to the British government for its efforts to counter terrorism after a terrorist attack on the U.K. parliament.
President Xi Jinping stated that China condemns the terror attack and is willing to give support to attain world peace and security.
Premier Li Keqiang and Foreign Minister Wang Yi sent separate messages of sympathy to Britain.
"We extend our condolences to the victims and express our sympathy to the wounded and the families of the victims," Foreign Ministry spokesperson Chunying Hua said. She added that China is against all forms or terrorism.
The spokesperson said that China is willing to cooperate with other countries in the fight against terror, the world's common enemy.
A terrorist named Khalid Masood drove a car over Westminster Bridge, near the Houses of Parliament. He ran on the pavement and started hitting passing pedestrians.
The victims, Aysha Frade, a British national, and American tourist Kurt Cochran, were killed on the spot. Leslie Rhodes, a 75-year-old Brit died of his injuries the next day.
There were 50 people injured and 31 of those needed hospital treatments, according to police reports.
One of the victims was Keith Palmer, 48 years old, and was stabbed by Masood. He served the parliamentary and diplomatic protection service for 15 years.
The killer was armed with a knife and started charging the parliament house. He was killed by a member of Defense Secretary Michael Fallon's close protection team.
Khalid Masood was 52 years old. He is a British national and was born in Kent in 1964. He was a resident in the West Midlands.
British Prime Minister Theresa May said that Masood was investigated by MI5 several years ago but is not part of the current intelligence priority list.
Seven suspects have been arrested.