Like in any other countries, you need a driver's license (driving licence) to operate a motor vehicle in Indonesia.
Surat Izin Mengemudi (SIM) or driver's license is issued by the Police. To get it, you need to pass a written test and then a driving practice test.
The driving practice test is conducted both at the police station ground and on the streets. This picture shows how a motorbike rider takes the riding skills test at the police station ground.