Code of Criminal Procedure Article 17

Where there is one of the following circumstances in the case before him/her, a judge shall disqualify himself/herself from the case concerned on his/her own motion and may not exercise his/her functions:(1) where the judge is the victim of the offenses charged in the case concerned;(2) where the judge is or was the spouse, blood relative within the eighth degree of kinship, relative by marriage within the fifth degree of relationship, family head, or family member of the accused or of the victim;(3) where the judge has been engaged to the accused or the victim;(4) where the judge is or was the statutory agent of the accused or the victim;(5) where the judge had acted as the agent, defense attorney, or assistant of the accused or as the agent or assistant of the private prosecutor or of a party in the supplementary civil action;(6) where the judge had acted as a complainant, informer, witness or expert witness;(7) where the judge had exercised the functions of the public prosecutor or judicial police officer;(8) where the judge had participated in the decision at a previous trial.
中文原文 刑事訴訟法第17條
法官於該管案件有下列情形之一者,應自行迴避,不得執行職務:
一、法官為被害人者。
二、法官現為或曾為被告或被害人之配偶、八親等內之血親、五親等內之姻親或家長、家屬者。
三、法官與被告或被害人訂有婚約者。
四、法官現為或曾為被告或被害人之法定代理人者。
五、法官曾為被告之代理人、辯護人、輔佐人或曾為自訴人、附帶民事訴訟當事人之代理人、輔佐人者。
六、法官曾為告訴人、告發人、證人或鑑定人者。
七、法官曾執行檢察官或司法警察官之職務者。
八、法官曾參與前審之裁判者。

English translation for reference only; the Chinese text prevails. Not legal advice.