The South African Railways Class 6B 4-6-0 of 1897 was a steam locomotive from the pre-Union era in the Cape of Good Hope. In 1897 and 1898, the Cape Government Railways placed a third batch of 55 6th Class 4-6-0 steam locomotives in service, 32 on its Western System, 21 on its Midland System and two on its Eastern System. During the Second Boer War, seven were transferred to the Imperial Military Railways on loan, and in 1907 four were sold to the Benguela Railway in Angola. In 1912, when the remaining 51 locomotives were assimilated into the South African Railways, they were renumbered and designated Class 6B. During the Second World War, two of them were sold to the Sudan Railways.