See Article 33 of the Criminal Procedure Law. In addition to exercising the right of defense, criminal suspects and defendants may also entrust one or two people as defenders.
Paragraph 3 of Article 35: If a criminal suspect or defendant may be sentenced to life imprisonment or death without entrusting a defender, the people's court, the people's procuratorate and the public security organ shall notify the legal aid institution to defend his appointed lawyer.