The prohibition of mixed marriages act and the immorality act were necessary for the apartheid ideology because the two acts emphasized on the racial purity that apartheid aimed to keep by the prohibition of marriages and sexual relationships between different races