Canada was a British colony from 1763 to 1931. During this time, the British government appointed the Governor General of Canada and controlled Canadian foreign policy and defense. The British also had significant influence over Canadian domestic politics.
After Canada became a self-governing dominion in 1931, the British government continued to play an important role in Canadian affairs. The British monarch remained the head of state and the British government continued to have some control over Canadian defense and foreign policy.
In recent years, the relationship between Canada and the United Kingdom has become more equal. The British government no longer has any control over Canadian affairs and the two countries are now independent states. However, the two countries still have close ties and cooperate on a wide range of issues, including trade, defense, and security.