  In this article we define the twisted product of groups as the generalization
of the semidirect product of groups. We will find the necessary and sufficient
condition in order that the twisted product of groups to be a group. In
particular, for two copies of the same group, the twisted product of group by
itself through the action of inner automorphisms is a group if and only if the
initial group is a metabelian group. Further we will construct Lie algebra for
Lie group of a twisted product of Lie groups. In the case of twisted product of
Lie group by itself by means of the action of inner automorphisms we find the
dependence of the scalar curvature for resulting Lie group on the scalar
curvature for initial Lie group.
