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 and convenient form in which the meaning of the parameters is clearly identified, and from which the physical properties of the solution can readily be interpreted.