Paduka Sri Sultan Abdul Hamid Halim Shah ibni Almarhum Sultan Ahmad Tajuddin Mukarram Shah, was the 26th Sultan of Kedah. He reigned from 1881 to 1943. He was the son of Sultan Ahmad Tajuddin Mukarram Shah and Wan Hajar. During his reign, the Sultan had asked for a $2,500,000 loan from Siam during a state financial crisis in 1905. The loan was extended with the proviso that a Financial Advisor from the court of Siam be accepted and a State Council be created to assist the Sultan in the administration of all public affairs. This resulted in the promulgation of a new constitution on 29 July 1905. The state council were run by his brothers followed by their sons. The formation of the State Council thus curbed the Sultan's administrative powers. His reign marked the transition from Siamese suzerainty over Kedah to the British Protectorate of Unfederated Malay States following the Anglo-Siamese Treaty of 1909. The Sultan had several wives and partners; Che Manjelara, Che Sofiah, Sharifah Fatimah Binti Syed Idrus, Sharifah Seha Binti Syed Hussein, Che Spachendra, Sharifah Mariam and Che Laraseh. The Sultan's seventh son and twentieth child with Makche Manjelara, Tunku Abdul Rahman, who would later become the first Prime Minister of Malaysia. The Sultan was succeeded by another son, Sultan Badlishah.
Sultan Abdul Hamid was responsible for the refurbishing of the Balai Besar in 1896. This building was destroyed due to attacks by the Bugis armada and Siamese. The refurbishment was spearheaded by Muhammad bin Lebai Tambi, an architect with the Public Works Department of Kedah State. The wedding ceremony of the Sultan's five princes and princesses was held here in 1904 and the celebrations were carried out over a 90-day period. Besides the wedding ceremony, the Balai Besar was also used for installation ceremonies, and State Council Conferences from 1905 until 1973. Sultan Abdul Hamid also built a new building for the Balai Nobat using concrete and metal in 1906. The architecture is the same as the previous wooden building. The height was three-story and the dome at its apex represents the Islamic element such as those found on mosques. It was during Sultan Abdul Hamid's reign that Masjid Zahir was officially opened on Friday, 15 October 1915. The Sultan also led the Friday prayers on the auspicious day. The architecture of the mosque was inspired by the Azizi Mosque in Tanjung Pura, Langkat Sultanate. This mosque is enhanced with five prime large domes symbolising the Five Pillars of Islam.