Beginning around the fourteenth century, samurai were expected to be cultured and literate, and the ancient saying “Bun Bu Ryo Do” (lit. literary arts, military arts, both ways) or “The pen and the sword in accord,” was an ideal to which many aspired.

Samurai @ Wikipedia

See also Jade Warrior