An object of the present invention is to provide DNA of a glycoalkaloid biosynthetic enzyme of a solanaceous plant (Solanaceae) such as a potato. The present invention relates to a protein having glycoalkaloid biosynthetic enzyme activity of a solanaceous plant such as a potato and a method for producing/detecting a novel organism using a gene encoding the protein.