Among 2574 persons diagnosed with HIV throughout Scotland and observed over the period 1981-1996, cancer incidence compared to the general population was 11 times higher overall; among homosexual/bisexual males, it was 21 times higher and among injecting drug users, haemophiliacs and heterosexuals it was five times higher, mostly due to AIDS-defining neoplasms. However, liver, lung and skin cancers (all non-AIDS-defining) were also significantly increased.