The Indonesian Parliament has passed controversial new anti-terrorism laws, handing the military direct involvement in counter-terrorism operations approved by the President.

The legislation creates a number of new offences, including engaging in military training with intent to commit terrorism.

The laws also hand police powers to detain suspects for 21 days without charge.

After being charged, suspects could be held for another 200 days to give police time to gather evidence before handing the case to prosecutors.

Indonesian security forces did not want the inclusion of "political motives" or "ideological motives" in the definition of terrorism under the act, claiming it would be too restrictive.

Read more: ABC News (Australia)