By 1977 by-election losses and defections to the breakaway Scottish Labour Party left Callaghan heading a minority government, forced to trade with smaller parties in order to govern.