As with other previous resolutions, Resolution 581 demanded South Africa eradicate apartheid, including the dismantling of the bantustans, removing bans and restrictions on anti-apartheid demonstrations, organisations, individuals and news media, allowing the return of exiles, and ending the violence against and repression of the black people and other opponents of apartheid. It also called for all political prisoners to be released.