We prove the finiteness of class numbers and Tate–Shafarevich sets for all affine group schemes of finite type over global function fields, as well as the finiteness of Tamagawa numbers and Godement’s compactness criterion (and a local analogue) for all such groups that are smooth and connected. This builds on the known cases of solvable and semi-simple groups via systematic use of the recently developed structure theory and classification of pseudo-reductive groups.