Due to the structuring and semi-structuring of the most data contained in deep web, it's considerably much easier to extract and construct the ontology. The constructed ontology has multiple appliances, such as the data integration, data extraction assistance and so on. During the process of constructing ontology, the matching of attribute is a significantly important step, the quality of whose result will directly affect ontology's quality. The method proposed in this paper works well on identifying and solving the cases of simple matching and complex matching. Experiment results approve that the ontology constructed under the instruction of this method is perfect, as well as effective.