Unlike in some other Asian countries, such as Thailand or the Philippines, the military plays no political role in Malaysia and there has never been a coup attempt in the country, which has seen 50 years of unbroken civilian rule.
Gen. Abdul Aziz Zainal, speaking ahead of his forces' 75th anniversary on Sept. 16, said the military would only act if co-opted by the police to maintain internal security.
Aziz, who earlier this week broke military protocol by asking the government to act against anyone who incited racial hatred, said the more than 100,000-strong military would remain apolitical.
Asked on whether the military would work with an Anwar Ibrahim-led government if the opposition comes to power by its self-imposed Sept. 16 deadline, Aziz said: 'I don't know about change of government, you are only speculating. As far as I'm concerned, the present government is in power.
'We will keep to our primary role that is to defend the nation against any form of external threats. There is no intention whatsoever to interfere with political affairs of the nation,' the 57-year-old Aziz said.
Opposition leader Anwar has to win the defection of 30 government MPs to have a majority in the 222-strong Malaysian parliament. At present his opposition coalition has 82 seats.
The ruling Barisan Nasional coalition this week sent around 50 of its MPs on a study trip to Taiwan, a move that Anwar said was aimed at preventing him from convincing them to switch sides.
(Reporting by Jalil Hamid, Editing by Alex Richardson)