This paper examines an insurer’s optimal asset allocation and reinsurance policies. The financial market framework includes one risk-free and one risky asset. The insurer has two business lines, where the ordinary claim process is modeled by a compound Poisson process and catastrophic claims follow a compound dynamic contagion process. The dynamic contagion process, which is a generalization of the externally exciting Cox process with shot-noise intensity and the self-exciting Hawkes process, is enhanced by accommodating the dependency structure between the magnitude of contribution to intensity after initial events for catastrophic insurance products and its claim/loss size. We also consider the dependency structure between the positive effect on the intensity and the negative crashes on the risky financial asset when initial events occur. Our objective is to maximize the insurer’s expected utility of terminal surplus. We construct the extended Hamilton–Jacobi–Bellman (HJB) equation using dynamic programming principles to derive an explicit optimal reinsurance policy for ordinary claims. We further develop an iterative scheme for solving the value function and the optimal asset allocation policy and the reinsurance policy for catastrophic claims numerically, providing a rigorous convergence proof. Finally, we present numerical examples to demonstrate the impact of key parameters.