The Tenjin Festival (天神祭, Tenjin Matsuri) of Osaka is ranked as one of Japan's top three festivals, along with the Gion Matsuri of Kyoto and the Kanda Matsuri of Tokyo. The festival started in the 10th century and today takes place on July 24 and 25 every year. The main celebrations are held on the festival's second day, July 25, including a land procession and a river procession with fireworks. Tenjin Matsuri is the festival of the Tenmangu Shrine and honors its principle deity Sugawara Michizane, the deity of scholarship. The festival begins by ceremonially inviting the deity out of the shrine and parading him through the city, carrying out various exuberant festivities to entertain him, before taking him back to the shrine. For the people, the lively festivities manifest in a wonderful occasion to enjoy the hot summer day, filled with traditional costumes, spectacular processions and a celebratory atmosphere. On the morning of the first day (July 24), the festival kicks off with a ritual at Tenmangu Shrine, followed by prayers at the river for peace and the safety and prosperity of Osaka. In the afternoon, drums are sounded by men in tall red hats to inform everyone that preparations for the festival are complete.