Foot was one of the mainstays of the "no" campaign in the 1975 referendum on British membership of the European Communities. When Wilson retired in 1976, Foot contested the party leadership and led in the first ballot, but was ultimately defeated by James Callaghan. Later that year Foot was elected Deputy Leader, and during the Callaghan government Foot took a seat in Cabinet as Leader of the House of Commons, which gave him the unenviable task of trying to maintain the survival of the Callaghan government as its majority evaporated. However, he was able to steer numerous government proposals through the Commons, often by very narrow majorities, including increases in pension and benefit rates, the creation of the Police Complaints Board, the expansion of comprehensive schools, the establishment of a statutory responsibility to provide housing for the homeless, universal Child Benefit, the nationalisation of shipbuilding, abolishing pay beds in NHS hospitals, and housing security for agricultural workers, before the government fell in a vote of no confidence by a single vote. Whilst Leader of the Commons, Foot simultaneously held the post of Lord President of the Council.