Certain marriages are void at the start; it’s as if they never happened. Incestuous and bigamous marriages are void at the outset. Family Code §§ 2200, 2201.
But just because the marriage “never happened”, it’s still possible that the parties may have acquired the rights of a putative spouse and property acquired during the relationship (what would have been community property if the marriage wasn’t void) can be subject to equal division as quasi-community property.
If you think your marriage is void, be sure to speak to an experienced family law attorney to discuss what rights you (or your putative spouse) may or may not have as it comes to quasi-community property.