Officially, Beijing follows what it calls a policy of non-interference and neutrality in the domestic affairs of other nations.
However, the top foreign affairs official in Libya's opposition has just arrived in China for talks with the Beijing government, the BBC reports.
Mahmud Jibril is to be there for two days.
Earlier this month, Libyan Foreign Minister Abdelati al-Obeidi also spent three days in Beijing, with China saying a ceasefire should be the "top priority" of both sides.