The states of the United States that recognize community property are primarily in the West ; it was inherited from Mexico 's ganancial community system, which itself was inherited from Spanish law (a Roman -derived civil law system) and ultimately from the Visigoths .