We investigate how an insurance firm can optimally allocate its assets to back up liabilities from multiple non-life business lines. The insurance risks are modeled by a multidimensional jump-diffusion process that accounts for simultaneous claims in different insurance lines with policy limits. We use Lagrangian convex duality techniques to derive optimal investment-underwriting strategies that maximize the expected utility from dividends and final wealth over a finite horizon. We examine how risk aversion, prudence, portfolio constraints, and multivariate insurance risk affect the firm’s earnings retention. We obtain explicit solutions for optimal strategies under constant relative risk aversion preferences. Finally, we illustrate our results with numerical examples and show the impact of co-integration for asset-liability management with multiple sources of insurance risk.