In 1947, Pakistan became a dominion and part of the British Commonwealth with the British Monarch as head of state, represented by the Governor-General of Pakistan. In 1956 Pakistan established its first constitution and became a Republic, and the Queen and Governor-General were replaced by the president.