"Samurai" is the positional title for officials in Japan from the ancient to middle ages, and an alternative name for "bushi" (warrior) that was derived from the first meaning.
侍（さむらい）は、古代から中世にかけての日本における官人の身分呼称、あるいはそこから発展的に生じた武士の別名。