Lord Attlee led the Labour Party to a landslide victory in the 1945 general election. His government was committed to granting India independence.