To get in-state tuition fees for UC

I’m having a hard time understanding how marrying an int’l student who isn’t a California resident is going to help you get in-state tuition.