Nearly 2,000 miners were working illegally underground at the Buffelsfontein Gold Mine south west of Johannesburg, police said.