beside (prep.)
Old English be sidan "by the side of" (only as two words), from be- + sidan dative of side (n.). By 1200, formed as one word and used as both adverb and preposition. The alternative Middle English meaning "outside" led to the sense preserved in beside oneself "out of one's wits" (late 15c.).