Artificial intelligence technology has played an important role in the global prevention and control of the COVID-19 pneumonia pandemic , but there are also some legal problems. In this paper, firstly, the contribution of artificial intelligence technology in COVID-19 prevention and control is analyzed and summarized, which involves many fields where artificial intelligence plays a key role: from virus protein molecular research, medical diagnosis and treatment, infectious disease propagation prediction and early warning, social public opinion analysis and rumor recognition, and further discusses the subdivision direction and development potential of artificial intelligence in various fields. Secondly, the legal and ethical problems in the application of artificial intelligence in epidemic prevention and control are summarized into three aspects: personal privacy and data protection, intellectual property rights, and network security risks, and the causes and conditions of these problems are analyzed in detail, and the possible temporary solutions are discussed. Finally, it calls for strengthening international cooperation and building a global collaborative research and development system for artificial intelligence epidemic prevention and control; It is expected that China will speed up the formulation of laws and regulations related to artificial intelligence and give full play to the guarantee role of laws and regulations as soon as possible; Thinking and looking forward to the global governance pattern in the post-epidemic era.