1: \begin{abstract}
2: We describe homomorphisms $\varphi:H\rightarrow G$ for which the codomain is acylindrically hyperbolic and the domain is a topological group which is either completely metrizable or locally countably compact Hausdorff. It is shown that, in a certain sense,
3: either the image of $\varphi$ is small or $\varphi$ is almost continuous.
4: We also describe homomorphisms from the Hawaiian earring group to $G$ as above.
5:
6: We prove a more precise result for homomorphisms $\varphi:H\rightarrow \MCG(\Sigma)$, where $H$ as above and
7: $\MCG(\Sigma)$ is the mapping class group of a connected compact surface $\Sigma$. In this case there exists an open normal subgroup $V\leqslant H$ such that $\varphi(V)$ is finite.
8: We also prove the analogous statement for homomorphisms $\varphi:H\rightarrow \Out(G)$, where $G$ is a one-ended hyperbolic group.
9:
10: Some automatic continuity results for relatively hyperbolic groups and fundamental groups of graphs of groups are also deduced.
11: As a by-product, we prove that the Hawaiian earring group is acylindrically hyperbolic,
12: but does not admit any universal acylindrical action on a hyperbolic space.
13:
14: %We prove combination theorems for these groups with respect to the property of automatic continuity.
15: \end{abstract}