In 1940–1941, during the East African Campaign, Pienaar commanded the 1st South African Infantry Brigade. He fought in the battles of El Wak, The Juba, Combolcia and Amba Alagi. After Amba Alagi fell, the brigade was dispatched to Libya.