In some jurisdictions, the term magistrate refers to the lowest level of the judiciary, such as a justice of the peace.