After a short time, the advantages to Canada of the Corn Act were undone when British Prime Minister Sir Robert Peel moved Britain towards free trade. A shortage of food caused by the Great Famine of Ireland created the need for cheap imported grain, and the act was repealed in 1846.