The Patriotic Alliance PA has won the much-contested by-election in Johannesburgs Ward 29.
The position became vacant after the death of an ANC councillor in July.
The PA also managed to win another seat, in ward 6 in the Swellendam Local Municipality in the Western Cape.