We study optimal stochastic control problems of general coupled systems of forward- backward stochastic di erential equations with jumps. By means of the Itô-Ventzell formula the system is transformed to a controlled backward stochastic partial di eren- tial equation (BSPDE) with jumps. Using a comparison principle for such BSPDEs we obtain a general stochastic Hamilton-Jacobi- Bellman (HJB) equation for such control problems. In the classical Markovian case with optimal control of jump di usions, the equation reduces to the classical HJB equation. The results are applied to study risk minimization in nancial markets.