The origin of bento can be traced back to the late Kamakura Period (1185 to 1333), when cooked and dried rice called hoshi-ii (干し飯, "dried meal") was developed. Hoshi-ii can be eaten as is or boiled with water to make cooked rice, and is stored in a small bag. In the Azuchi-Momoyama Period (1568 to 1600), wooden lacquered boxes like today's were produced and bento would be eaten during a hanami or a tea party.
In the Edo Period (1603 to 1867), bento culture spread and became more refined. Travelers and sightseers would carry a simple koshibento (腰弁当, "waist bento"), consisting of several onigiri wrapped with bamboo leaves or in a woven bamboo box. One of the most popular styles of bento, called makuno-uchi bento ("between-act bento"), was first made during this period. People who came to see Noh and Kabuki ate specially prepared bento between maku (acts). Numerous cookbooks were published detailing how to cook, how to pack, and what to prepare for occasions like Hanami and Hinamatsuri.
In the Meiji Period (1868 to 1912), the first ekibento or ekiben (駅弁当 or 駅弁, "train station bento") was sold. There are several records that claim where ekiben was first sold, but it is believed that it was sold on 16 July, 1885, at the Utsunomiya train station, and contained two onigiri and a serving of takuan wrapped in bamboo leaves. As early schools did not provide lunch, students and teachers carried bento, as did many employees. A "European" style bento with sandwiches also went on sale during this period.
In the Taisho period (1912 to 1926), the aluminum bento box became a luxury item because of its ease of cleaning and its silver-like appearance. Also, a move to abolish the practice of bento in school became a social issue. Disparities in wealth spread during this period, following an export boom during World War I and subsequent crop failures in the Tohoku region. A bento too often reflected a student's wealth, and many wondered if this had an unfavorable influence on children both physically, from lack of adequate diet, and psychologically, from a clumsily made bento or the richness of food. After World War II, the practice of bringing bento to school gradually declined and was replaced by uniform food provided for all students and teachers.
Bento regained its popularity in the 1980s, with the help of the microwave oven and the proliferation of convenience stores. In addition, the expensive wood and metal boxes have been replaced at most bento shops with inexpensive, disposable polystyrene boxes. However, even handmade bento have made a comeback, and they are once again a common, although not universal, sight at Japanese schools. Bento are still used by workers as a packed lunch, by families on day trips, for school picnics and sports days etc. The bento, made at home, is wrapped in a furoshiki cloth, which acts as both bag and table mat.