Oiran (花魁) is a collective term for the highest-ranking courtesans in Japanese history, who were considered to be above common prostitutes (known as yūjo (遊女, lit. 'woman of pleasure')) for their more refined entertainment skills and training in the traditional arts. Divided into a number of ranks within this category, the highest rank of oiran were the tayū, who were considered to be set apart from other oiran due to their intensive training in the traditional arts and the fact that they lived and worked in Kyoto, the political capital of Japan, which remained the cultural heart of the country when the seat of political power moved to Tokyo. Though oiran by definition also engaged in prostitution, higher-ranking oiran had a degree of choice in which customers they took.
The term oiran originated in Yoshiwara, the red light district of Edo in the 1750s, and is applied to all ranks of high level courtesans in historical Japan.