In this paper, we construct the topological or dark solitons of Hirota equation by using the first integral method. This approach provides first integrals in polynomial form with a high accuracy for two-dimensional plane autonomous systems. Exact soliton solution is constructed through the established first integrals. This method is a powerful tool for searching exact travelling solutions of nonlinear partial differential equations (NPDEs) in mathematical physics.