Residency rules can affect state taxes as they determine whether an individual is considered a resident, part-year resident, or nonresident, which can impact tax rates, deductions, credits, and filing requirements. Residency rules vary by state and can be complex to understand.