A class of exact solutions of the Einstein–Maxwell equations is presented which describes an accelerating and rotating charged black hole in an asymptotically de Sitter or anti-de Sitter universe. The metric is presented in a new form convenient for interpretation.