From 1947 to 1956, the Dominion of Pakistan was a self-governing country within the Commonwealth of Nations that shared a monarch with the United Kingdom and the other Dominions of the Commonwealth. The monarch's constitutional roles in Pakistan were mostly delegated to a vice-regal representative, the governor-general of Pakistan. The dominion was created by the Indian Independence Act 1947, which divided British India into two independent sovereign states of India and Pakistan. The monarchy was abolished on 23 March 1956, when Pakistan became a republic within the Commonwealth with a president as its head of state. Under the Indian Independence Act 1947, British India was to be divided into the independent sovereign states of India and Pakistan. From 1947 to 1952, King George VI was the sovereign of Pakistan, with Pakistan sharing the sovereign with the United Kingdom and the other Dominions of the Commonwealth of Nations. To mark the independence of Pakistan, the King sent a message of congratulations to its people, which was read by Lord Mountbatten in the Constituent Assembly of Pakistan on 14 August 1947. In his message, the King said in "achieving your independence by agreement, you have set an example to all freedom-loving people throughout the world". He told the Pakistani people to be "assured always of my sympathy and support as I watch your continuing efforts to advance the cause of humanity". The King appointed Mohammad Ali Jinnah as the governor-general of Pakistan and authorised him to exercise and perform all the powers and duties as his representative in Pakistan. Mohammad Ali Jinnah took the following oath of office: "I, Mohammad Ali Jinnah, do solemnly affirm true faith and allegiance to the Constitution of Pakistan as by law established and that I will be faithful to His Majesty King George VI, in the office of governor general of Pakistan." Jinnah died of tuberculosis on 11 September 1948, while in office.