The Ramadan cannon at Cairo’s citadel, believed to be the birthplace of the tradition, was fired on Tuesday for the first time in nearly 30 years. For Egyptians to hear the cannon, it had to be restored meticulously, with craftsmen removing a layer of rust on the outside and cleaning the inside of the barrel, Egypt’s Tourism and Antiquities Ministry said. The firing of the Ramadan cannon, or midfa al iftar, at sundown is a tradition followed in several Muslim countries, including the UAE, Saudi Arabia, Egypt, Bangladesh and Kuwait. The sound of the blast carries a special meaning for Muslim worshippers, echoing a simpler time before the convenience of smartphones and apps to tell people when they can break their fast. Eman Zidane, assistant minister of tourism and antiquities, said the restoration of the cannon was part of a plan to upgrade museums and archaeological sites, including the citadel, called the Salahuddin Al Ayoubi Castle. Osama Talaat, head of the ministry's Islamic, Coptic and Jewish antiquities department, told <em>The National</em> that restoring the cannon took about a month. Mr Talaat said he used to live in the area surrounding the citadel and remembered the cannon fire ringing out over the city. "As an Egyptian citizen, it makes me very happy and it brings back nice memories," he said. The ministry earlier test fired the cannon in the Police Museum square at the castle, where it had been fired in the past. The fortress dates from the Middle Ages and is located on the Muqattam Hills in the south-east of the Egyptian capital. Construction of the castle began in 1174 under Salahuddin, the first sultan of Egypt. It was not completed in his lifetime, but after his reign it became the official residence of the rulers of Egypt until the mid-19th century. How the Ramadan cannon tradition came about is still debated by historians and scholars. Cannon first appeared in China in the 12th century, hundreds of years after the birth of Islam. Mr Talaat said many believed the tradition of using cannon fire to mark the time for iftar originated at the castle in Cairo. In one historical account, Sultan Mamluk Khushqadam is said to have fired the cannon to test it after receiving it as a gift. This shot is said to have coincided with sunset on the first day of Ramadan in 1467, or 871 in the Islamic calendar, and people thought it was meant to signal to the city that it was time to break the first fast of the holy month. After Cairo’s inhabitants thanked the sultan for the signal, he decided to fire the cannon at sundown on every day of Ramadan. In another story, it was mistakenly set off while being cleaned by soldiers during the reign of 19th-century ruler Khedive Ismael. His daughter Fatima is said to have been so taken with the idea that she asked that the tradition be continued. The cannon at the citadel has been changed and moved around over hundreds of years of Egyptian history. The one on display at the square dates from 1871. Built in Germany by Krupp, it has a solid iron base and requires two soldiers to operate it. It was last fired in 1992. The Ramadan cannon is fired many times during the holy month. It is usually fired twice to herald the start of the holy month, and then on each day at sunset. A second firing often comes in the early morning hours during the call to fajr prayers, to signal the start of a new fasting day. Two shots are fired to announce the start of Eid Al Fitr.