In California, one of the spouses must have been a resident of the state for at least 6+ months in order to file for divorce, although cases can be initiated sooner for certain emergency orders and for a legal separation. Choice of filing county depends on the county of residence of one of the parties.