The crystal structures of the S proteins of two porcine CoV in complex with the pig APN (pAPN) or with a neutralizing antibody shown here, reveal how some CoV bind to its cell surface APN receptor and how antibodies prevent receptor binding and infection. This evidence concerns the gene ANPEP and infection.