In this talk, we study the optimal investment problem for an insurer, who is allowed to invest in a financial market which consists of N risky securities modeled by an N-dimensional Ito process. The surplus of the insurer is modeled by a general risk model. With different constraints, the optimal investment strategies with the constant absolute risk aversion utility and the quadratic utility are obtained, respectively.