The main purposes of the article are to descript the meaning of data mining and data warehouse, to compare the differences of data mining and statistics analysis, and to descript the relationships between data warehouse, KDD and data mining. At the same time, we also descript the functions, applications, processes, a nd instruments of data mining. Finally, we descript how to apply data warehouse and data mining in customs relationship management.