In 1924, however, Lang regained control of the New South Wales Labor Party and had Garden and other Communists once again expelled from the party, a decision which was upheld by the federal executive. This was the end of the CPA's attempts to take over the Labor Party, and by 1925 the CPA had become mainly an appendage of Garden's machine in the Sydney Trades Hall. At the 1925 state elections the CPA ran candidates, including Garden, against Labor candidates in working-class seats and was heavily defeated. This convinced Garden that the CPA had no future, and in 1926 he left the party.