While the local structure of a real integrable system is quite simple, things are quite different when we go over to a complex domain. We study integrable systems of Jacobian and Prym varieties associated with Riemann surfaces and consider, in particular, those that minimize a certain rank.