Definition. Let $(G,\ast)$ be any group. Then $G$ will be said to be a topological group if there exists a topology on $G$ such that the map $f:G\times G\to G$ defined by $f(x,y)=xy^{-1}$ for all $(x,y)\in G\times G$ is continuous.
Now observe that in this definition it is important to note that we first have a group and then the topology which makes $f$ cotinuous. In other words, we impose topological stricture on a group.
My question
Is it possible to impose group structure on a topological space? I don't think that it is possible always. So my question is, if $(X,\tau)$ be a topological space then under which condition(s) does there exists a binary operation $\ast:X\times X\to X$ such that $(X,\ast)$ is a group?
If there is any related research in mathematics literature then can you please let me know about some of those?
It has been pointed out (see below) that this question is a duplicate of this question. However, I don't think that they are for the reason as explained in this comment. It is also not clear to me that imposing a group structure on a topological space (if it's possible of course) is expected to result in a topological group.