The invention relates to an Escherichia coli MG1655 bacterial strain lacking a sahn gene, a construction method and application. The construction method comprises the following steps that a linear DNA fragment of which the middle part is a selection marker gene and the two ends are homologous sequences is utilized, by means of the effect of a Red recombinase, a homologous recombination between the homologous sequences and a desired gene occurs, and thus a target gene is replaced with the marker gene; in order to eliminate the trace of the selection marker gene, special sites which can be recognized by a Cre site specificity recombinase are added on the both sides of the selection marker gene; and the selection marker gene is deleted through the effect of the site specificity recombinase, and the Escherichia coli MG1655 bacterial strain lacking the sahn gene, namely MG1655 delta sahn, is obtained. The invention further provides the application of the bacterial strain. The quorum sensing characteristic of the mutant strain delta sahn is utilized as a contrast, and a novel type inhibitor which is 1-((4-amino-5H-pyrrolo[3,2-d]pyrimidin-7-yl)methyl)-5-(1H-1,2,3-triazo1-4-yl)piperidin-3-ol is screened, so that the growth and splitting ability of pathogenic bacterium is reduced.