The Mexican Federal Civil Code sets out different grounds for being disqualified from inheriting, whether under a will or through intestate succession. Among them is the case of parents who abandoned, prostituted, or corrupted their descendants with respect to the offended persons.
The rule is set out in Article 1316, Section VII, of the Federal Civil Code. However, the law also says this disqualification does not apply automatically, since it must be declared in court when requested by an interested party.