A lawyer can represent several defendants.

Legal analysis: 1. If there is no conflict of interest, a lawyer can represent multiple defendants.

2. It is forbidden for multiple defendants to entrust the same agent ad litem at the same time in criminal proceedings.

3. In civil litigation, whether a lawyer can act as the litigation agent of multiple plaintiffs or defendants at the same time depends on whether there are conflicts of interest between the parties represented by lawyers.

4. If there is no conflict of interest between clients, the same lawyer can be the agent ad litem of clients, otherwise it is not allowed.

5. Because one of the special elements of agency is oriented to the principal's interests, all acts aimed at infringing the principal's interests are prohibited.

Legal basis: People's Republic of China (PRC) Lawyers Law.

Article 38 A lawyer shall keep the state secrets and business secrets he knows in his practice, and shall not disclose the privacy of his clients. Lawyers should keep confidential the relevant information and materials that their clients and others are unwilling to disclose in their practice activities. However, criminal facts and information that endanger national security, public safety and seriously endanger the personal safety of others are being prepared or implemented by the client or others.

Article 39 A lawyer shall not act as an agent for both parties in the same case, nor shall he act as an agent for legal affairs that have conflicts of interest with himself or his close relatives.