While the whole situation was very complex, the major trend at the end of the Edo period was that the Tokugawa Shogunate and the Satsuma Domain who insisted on opening Japan to the world were at odds with the Choshu Domain who insisted on expelling foreigners.
ことは複雑で事態は単純ではないが、大きな流れとしては、江戸幕末では「開国」を主張する徳川幕府や薩摩藩と、「攘夷」を主張する長州藩の対立となった。