CAPE TOWN, SOUTH AFRICA, JULY 20 -- Anti-apartheid leader Nelson Mandela and South African President Frederik W. de Klerk agreed today that talks between the African National Congress and the government would resume Aug. 6.

De Klerk's press spokesman, Caspar Venter, said Mandela requested the meeting in Pretoria after he returned Wednesday from a six-week tour in Africa, Europe and North America.

It was the first meeting between the two since June 2, when they discussed progress following the first official ANC talks with the white government in May.

De Klerk legalized the ANC, the biggest organization fighting white rule, in February and freed Mandela the same month.

The two sides agreed in their first formal talks in May to cooperate to end violence and remove obstacles to a negotiated settlement between whites and the voteless blacks who outnumber them by more than 5 to 1.

They announced after the meeting at the Groote Schuur estate in Cape Town that they had set up a joint working group to propose terms for releasing nearly 3,000 political prisoners.

The government also agreed to review security laws seen by the ANC as an impediment to political freedom, to allow exiled ANC leaders to return safely to South Africa and to end the three-year-old emergency rule as soon as possible.