Generally, either spouse must have lived in California for at least six months and in the filing county for at least three months. Different requirements may apply to legal separation and certain other circumstances. The residency rules are explained by the California Courts.