Putrajaya is courting trouble from extremists as it cozies up to Saudi Arabia, said Kuala Terengganu MP Raja Kamarul Bahrin Raja Ahmad.

Raja Kamarul claimed that Saudi Arabia had funded wars in Syria, Iraq and Yemen, while making enemies with Qatar and Lebanon.

In view of this, a military alliance with Saudi Arabia may lead to Malaysia being a target from the former's enemies.

"Saudi Arabia, with its Wahhabi doctrine, makes them unpopular in the Arab world and cozying up to them is irresponsible, because it might invite terrorists to our shores," he said in a statement. 

Raja Kamarul has long been campaigning for an end to Malaysia's alleged participation in the Saudi Arabia-led coalition's military intervention in Yemen.

Defence Minister Hishammuddin Hussein said Malaysia troops did not participate in any attacks on Yemen and are stationed in Saudi Arabia for evacuation efforts.

However, United Nations' report on possible war crimes in Yemen earlier this year had claimed that Malaysian military officers were spotted at Riyadh's military headquarters, possibly for intelligence and logistical activities.

Raja Kamarul said he was not convinced by Putrajaya's claim that it was not involved in the Yemeni conflict because a recent press conference by the Saudi-led coalition spokesperson, General Turki Al-Maliki, had clearly featured the Malaysian flag.

Meanwhile, Raja Kamarul said it was wrong for Malaysia to offer 16 hectares of land in Putrajaya for the new King Salman Centre for International Peace (KSCIP) because of Saudi Arabia's alleged ties with terrorist groups.

He claimed that Saudi Arabia had given rise to the Islamic State and ignited fresh diplomatic hostilities with Qatar and Lebanon.

"There are many examples of suffering and destruction in Syria, Iraq and Yemen. It may even happen in Qatar and Lebanon.

"There is no end in sight and we should not invite problems for Malaysia," said Raja Kamarul, adding that Saudi Arabia has never been known for being "moderate".