Let $G$ be a connected semisimple Lie group with trivial centre and $\mathfrak{g}$ its Lie algebra. The adjoint representation of $G$ defines an isomorphism of $G$ onto the connected component of the identity of $Aut(\mathfrak{g})$. The latter is a real algebraic group, but its identity component (in the Lie group topology) needs not be. However, in many cases $G$ is indeed isomorphic to a real algebraic group.
Is there an example of a connected semisimple Lie group $G$ with trivial centre which is not isomorphic (as a Lie group) to a real algebraic group?
Here it's really important that $G$ be centreless, otherwise it's easy to find counterexamples (such as the universal cover of $SL_2\mathbb{R}$).
The situation is complicated by the following fact. The real algebraic group $SO(n,1)$ is connected in the Zariski topology, while it has two components as a Lie group; thus, its identity component $G_n$ might be a good candidate for a counterexample, since it is centreless and doesn't inherit a real algebraic structure from $SO(n,1)$. However, at least for $n\leq 3$, $G_n$ happens to be isomorphic to a real algebraic group in an unrelated way (namely $\mathbb{R}$, $\mathbb{P}SL_2\mathbb{R}$ and $\mathbb{P}SL_2\mathbb{C}$ for $n=1,2,3,$ respectively).
There are several other questions around on the relationship between algebraic and Lie groups, but none of them seems to be relevant in this case...