Ukiyozōshi (浮世草子, "books of the floating world") is the first major genre of popular Japanese fiction, written between the 1680s and the 1770s in Kyoto and Osaka. Ukiyozōshi literature developed from the kanazōshi genre and was in fact initially classified as kanazōshi. The term "ukiyozōshi" first appeared in about 1710 in reference to amorous or erotic works, but the term later came to refer to literature that encompassed a variety of subjects and aspects of life during the Edo period.
Ihara Saikaku's Life of an Amorous Man is considered the first work in this genre. This work, as well as other amorous literature, drew subject matter from the courtesan critiques and guides to the pleasure quarters that became popular in the 1640s and 1650s. Although Saikaku's works were not regarded as high literature at the time, they became popular and were key to the development and spread of ukiyozōshi.
After Saikaku's death, some notable writers that followed include Nishizawa Ippu, Miyako no Nishiki, and Hōjō Dansui, Saikaku's only direct pupil in novel writing. The last significant ukiyozōshi writer was Ejima Kiseki, from Kyoto. While Kiseki's writing lacked the style and depth of Saikaku's, he is credited with creating the katagi-mono, or character books, a genre that remained popular throughout the eighteenth century. Each book consisted of about fifteen sketches describing various types of people.
By the mid-eighteenth century, Edo had become the center of literary activity, and while ukiyozōshi continued to be produced until around the 1770s, the genre became stagnant after Kiseki's death and slowly declined.
By the time the ukiyozōshi genre first appeared, the commercial publishing industry had been fully developed. Ukiyozōshi books were published at a fixed size and length, and it was around this time that literature first began to be published for profit. For these reasons, prose literature, including ukiyozōshi, tended to be of low quality. Nevertheless, many ukiyozōshi works, particularly those of Saikaku, feature sophisticated literary techniques, structures, and insight into the lives and personalities of the characters.
Ukiyozōshi literature was considered popular literature and was written in the kana-based vernacular language. In contrast, elite literature, such as kanbun, was written in classical Chinese or classical Japanese and typically focused on traditional aristocratic topics, such as love and nature.