A court in Jakarta has sentenced a man who made bombs that killed 202 people at Bali nightclubs in 2002 to 20 years in jail.

Umar Patek, 45, was captured in the same Pakistan town where US forces killed Osama bin Laden.

Security officials have said he belonged to the banned Jemaah Islamiah group linked to al-Qaeda.

He was found guilty on all six charges at a court surrounded by snipers and bomb defusal experts.

The court heard that he had built the Bali bombs from 700kg of potassium chlorate, sulphur and aluminium powder and stuffed them in four plastic filing cabinets.

He also helped man make electronic devices to link the four filing cabinets.

The nightclubs on Bali, Indonesia's top holiday destination, were packed with Australian tourists.

After the bombing Patek fled, living in the Philippines with groups including the Moro Islamic Liberation Front (MILF) and the Abu Sayyaf group.

After the bombings, security forces detained nearly 600 militants, most of whom have been jailed.

Three main perpetrators of the bombings were convicted and executed by firing squad in 2008.