In Japan the native Shinto religion soon adopted the lanterns for ceremonies that were often held at night, the flicker of candlelight creating a beautiful effect, they were used until the 16th century, and later hanging lanterns were used in Japanese temples and shrines often for ornamental rather than functional purposes. They were hung outside usually at each of the four corners of the building or used to light doorways. Later with the refinement of the Japanese tea ceremony, hanging lanterns came into private use where they were hung under eaves of homes, in Japan many lanterns may be seen hanging in large numbers from the eaves of temples