Around 1840, a decision was made to move the Russian-American Company base from Okhotsk 270 miles down the coast to Ayan, because Okhotsk stands on a river mouth protected by a sand bar and is subject to flooding while Ayan is on a circular bay on the south side of a peninsula and can be entered without waiting for a proper wind.