The town was founded first on the left bank of the Amur River, below the mouth of the Zeya, but was abandoned, and the present town was founded in 1684. It was here that Count Muravyov concluded, in May 1857, the Aigun Treaty, according to which the left bank of the Amur River was conceded to Russia. During the Boxer Rebellion of 1900 it was, for a few weeks, the center of military action directed against the Russians. .