If $f : X \to Y$ is a continuous function and we fix base points $x_0 \in X$ and $y_0 = f(x_0)\in Y$, then $f$ induces a group homomorphism $$f_*: \pi_1(X, x_0) \to \pi_1(Y, y_0)$$ between the fundamental groups of $(X, x_0)$ and $(Y,y_0)$. I was just wondering if there is some kind of reciprocal property, that is:
If $\psi : \pi_1(X,x_0) \to \pi_1(Y,y_0)$ is a homomorphism, is it true that $\psi = f_*$ for some continuous function $f: X \to Y$?
Not in general, there are obstructions.
A discussion about this interesting problem is contained in MathOverflow question 166153.