If one or the other spouse is stationed.
At one time, Nevada became a divorce Mecca because it had the shortest residency requirement -- six weeks.
Alaska, South Dakota and Washington have no specific residency requirement.