Magistrates hear committal proceedings for certain offences, and can establish whether sufficient evidence exists to pass the case to a higher court for trial and sentencing.
In some jurisdictions the prosecuting authority may directly present a defendant for trial regardless of the result of the committal proceedings by filing an ex officio indictment.