The samurai were a warrior caste in Japan that existed from the 12th to the 19th century. They were not just soldiers, but the elite of feudal Japan, servants of daimyo (feudal lords). Their lives were dedicated to perfecting martial skills, studying Confucianism and Buddhism, and observing a strict code of honor called bushido.