Malmesbury is a town of about 36,000 people in the Western Cape province of South Africa, about 65 km (40 mi) north of Cape Town.