On the second day of his five-day trip to China, Malaysian Prime Minister Abdullah Ahmad Badawi visited Beijing's Nan Xia Po Mosque and took part in Friday prayers.
The mosque is one of China's oldest, built around three hundred years ago during the Qing dynasty.
Badawi met the mosque's Imam Zhang Wan Chun, and spent ten minutes talking with him before they exchanged gifts.
Later on Friday, Badawi is expected to meet Chinese Prime Minister Wen Jiabao. Badawi will meet President Hu Jintao on Saturday.
Abdullah arrived in Beijing late on Thursday.
The trip is his first to China since taking power in October, but he was a regular visitor to Beijing in his former post as Malaysia's foreign minister and then as deputy prime minister.
Trade between the two countries grew to more than 20 (b) billion US dollars in 2003, making Malaysia China's seventh-largest trading partner.
The trade balance is now strongly in Malaysia's favour, but the Malaysian government worries that China's low costs will lure away foreign investment that supports Malaysian manufacturing.
Malaysia's population of 25 (m) million has a Malay majority, but ethnic Chinese make up about one-third of the population.
China and Malaysia have generally good relations. Although both are among the six governments that claim the Spratly Islands in the South China Sea, the issue is not a flashpoint and there are no other obvious diplomatic trouble spots.