On Saturday evening, eight gunmen armed with AK-47 rifles and pistols stormed a bar in Wedela township, south-west of Johannesburg, killing 17 people and wounding at least 15 others, according to police. The suspects opened fire on customers outside before continuing inside and setting two vehicles on fire as they fled. Among the dead were 13 men and four women.
In the second attack, in the early hours of Sunday, 10 people were killed outside an entertainment venue in a township near Cape Town, with 11 more injured. Five victims died at the scene and five later in hospital.
Police said no motive had been identified in either case, and no arrests had been made as of Sunday morning.
The attacks come days after 11 people were killed in a separate mass shooting in the KwaMakhutha township in Durban, where gunmen stormed a house. South Africa has one of the highest murder rates in the world and has struggled to contain gang-related gun violence in recent years.