The laws became the focus of opposition from urban groups who had far less political power than rural areas. The first two years of the Great Famine in Ireland of 1845–1852 forced a resolution because of the urgent need for new food supplies. The Prime Minister, Sir Robert Peel, a Conservative, achieved repeal with the support of the Whigs in Parliament, overcoming the opposition of most of his own party.