If skin cancer or a precursor is suspected, the affected mole is removed and examined histologically (microscopically). This allows the diagnosis to be confirmed and, if necessary, treated at an early stage.