 The following General Election in 1922 he was again defeated as a Labour candidate at Kennington.In the following year C. J. Matthew, the sitting Labour MP for Whitechapel and St Georges died, and Gosling held the seat for the party at the ensuing by-election, retaining it until his death.For a short period in 1924 he was Minister of Transport and Paymaster General in the First Labour Government.