The Pentagon on Tuesday said that China had tested a space-based weapon system and argued that space was now broadly recognised as "a warfighting domain". The US military in September admitted to having deployed its own weapons in Earth's orbit.

China recently tested a space-based weapon system, the Pentagon alleged Tuesday, as the military competition between the world's two largest economies increasingly looks toward Earth's orbit.

"The Department of War is aware of China's recent space weapon test," a Pentagon official in a statement, without giving details on when the event took place.

"This event demonstrates that space is broadly recognised and treated as a warfighting domain and emphasises that China is actively developing weapons capabilities that threaten US national security interests."

Global treaties have long agreed that space should be used only for peaceful purposes.

The development follows the US military's own admissions in September that it has deployed weapons in space and is preparing for combat not only in Earth’s orbit but around the moon.

The US Space Force at the time alleged that Beijing "develops and operates space and counterspace capabilities as part of a military modernisation strategy".

Read moreStar Wars: Has Russia's war with Ukraine gone intergalactic?