A tatami (畳?) is a type of mat used as a flooring material in traditional Japanese-style rooms. Traditionally made using rice straw to form the core, the cores of contemporary tatami are sometimes composed of compressed wood chip boards or polystyrene foam. With a covering of woven soft rush (igusa 藺草) straw, tatami are made in standard sizes, with the length exactly twice the width, an aspect ratio of 2:1. Usually, on the long sides, they have edging (heri 縁) of brocade or plain cloth, although some tatami have no edging.
The term tatami is derived from the verb tatamu, meaning to fold or pile. This indicates that the early tatami were thin and could be folded up when not used or piled in layers. Tatami were originally a luxury item for the nobility. During the Heian period, when the shinden-zukuri architectural style of aristocratic residences was consummated, the flooring of shinden-zukuri palatial rooms were mainly wooden, and tatami were only used as seating for the highest aristocrats. In the Kamakura period, there arose the shoin-zukuri architectural style of residence for the samurai and priests who had gained power. This architectural style reached its peak of development in the Muromachi period, when tatami gradually came to be spread over whole rooms, beginning with small rooms. Rooms completely spread with tatami came to be known as zashiki (座敷, lit., room spread out for sitting), and rules concerning seating and etiquette determined the arrangement of the tatami in the rooms. It is said that prior to the mid-16th century, the ruling nobility and samurai slept on tatami or woven mats called goza (茣蓙), while commoners used straw mats or loose straw for bedding.