Tanabata, also known as the Star Festival (星祭り, Hoshimatsuri), is a Japanese festival originating from the Chinese Qixi Festival. It celebrates the meeting of the deities Orihime and Hikoboshi (represented by the stars Vega and Altair respectively). According to legend, the Milky Way separates these lovers, and they are allowed to meet only once a year on the seventh day of the seventh lunar month of the lunisolar calendar. The date of Tanabata varies by region of the country, but the first festivities begin on 7 July of the Gregorian calendar. The celebration is held at various days between July and August.
The festival was introduced to Japan by the Empress Kōken in 755. It originated from "The Festival to Plead for Skills", an alternative name for Qixi which is celebrated in China and also was adopted in the Kyoto Imperial Palace from the Heian period.
The festival gained widespread popularity amongst the general public by the early Edo period, when it became mixed with various Obon or Bon traditions (because Bon was held on 15th of the seventh month then), and developed into the modern Tanabata festival. Popular customs relating to the festival varied by region of the country, but generally, girls wished for better sewing and craftsmanship, and boys wished for better handwriting by writing wishes on strips of paper. At this time, the custom was to use dew left on taro leaves to create the ink used to write wishes. Incidentally, Bon is now held on 15 August on the solar calendar, close to its original date on the lunar calendar, making Tanabata and Bon separate events.
The name Tanabata is remotely related to the Japanese reading of the Chinese characters 七夕, which used to be read as "Shichiseki" (see explanation about the various kanji readings). It is believed that a Shinto purification ceremony existed around the same time, in which a Shinto miko wove a special cloth on a loom called a tanabata and offered it to a god to pray for protection of rice crops from rain or storm and for good harvest later in autumn.