Utilizing the method of optimal control, we investigate the tactics of state transfer in the non-Markovian quantum system with phase relaxation and energy dissipative relaxation. The influence of Ohmic reservoir with Lorentz–Drude regularization is numerically studied. Owing to the decoherence and memory effects of non-Markovian channel, the purity of quantum state attenuates damply in the free evolution. The numerical simulations indicate that arbitrary state transfer for non-Markovian system can be realized under the optimal control function by a proper external control field with a success rate of more than 98 percent. When the right control field and function is implemented, not only the decoherence is compensated completely but also the purity of quantum states are maintained in the process of state transfer.