A novel cholesterol oxidase having stability in the presence of surfactant and a gene encoding the novel cholesterol oxidase.