York County District Attorney Kathryn Slattery, a Democrat, was re-elected after running unopposed for another term.

William King, a Democrat and chief deputy of the York County Sheriff’s Department, ran unopposed and was elected York County sheriff.