People's Republic of China (PRC) Civil Code
Article 1071 Children born out of wedlock enjoy the same rights as children born in wedlock, and no organization or individual may harm or discriminate against them.
The biological father or mother who does not directly raise children born out of wedlock shall bear the responsibility for raising minor children or adult children who cannot live independently.
Article 1074. Grandparents who can afford it have the obligation to support their minor grandchildren whose parents are dead or unable to support them.
Grandchildren and grandchildren with financial means have the obligation to support grandparents whose children have died or whose children are unable to support them.