Can't a lawyer represent both parties in the same case?

The six situations that lawyers need to avoid are as follows:

1, entrusted by one party to a civil litigation or arbitration case, and other lawyers of the same firm are close relatives of the other party to the case;

2. Being a defender of a criminal suspect or defendant in a criminal case, and being a close relative of the victim in the case with other lawyers;

3. The same law firm accepts litigation cases or other legal business entrusted by the other party who is not a party;

4. There is a legal service relationship between the law firm and the client;

5. Within one year after the termination of the entrustment relationship, the lawyer accepts the entrustment of the other party who has an interest in the original client on the same legal matter;

6. Other circumstances that can be judged according to the lawyer's practice experience and industry common sense.

People's Republic of China (PRC) Lawyers Law

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. Article 41

Lawyers who have served as judges and prosecutors shall not serve as agents ad litem or defenders within two years after leaving the people's courts and people's procuratorates.