Original: The first was in the bakufu-domain system, which by the eighteenth century was in trouble.
Simplified: The first was with the bakufu-domain system, which by the eighteenth century was in trouble.