The leaves of pansy were used as materials, method of SDS and DNA secure plant kit were used to extract DNA from the pansy leaves. The concentration and quality of DNA were determined by agarose gel electrophoresis. The results showed that: The quality of DNA extracted by SDS method was high, but the purity was low and the time consuming was long. The high purity DNA could be obtained by DNA secure plant kit method, and the method was easy to operate and had short consumption time, but the cost was high. The results of PCR amplification showed that the DNA extracted from the two methods could meet the needs of gene amplification and molecular marker detection.