Working of generic Ampicillin is very exact in the treatment of the bacterial infections. After you take the dosage, the active constituent reaches to the infected place in the body. There it starts its mode of action. The bacterial infections are treated by curtailing the process of cell wall formation in the bacteria. Basically, this medication acts as the inhibitor of the enzyme transpeptidase that is responsible for the cell wall formation of the bacteria.
The process of the bacterial cell wall synthesis is inhibited by generic Ampicillin by not allowing the double strands of the DNA to form. This retards the replication process completely. Due to which the newly grown bacteria cells undergoes lysis and they die. The spread of the bacterial infection is stopped due to this. Later on its stops the food supply to the infected part, thus bacteria that are totally dependent on the host of the food supply doesn't get the enough food and they finally die due to starvation. This antibiotic drug because of the presence of amino group can penetrate easily through the walls of gram positive and gram negative bacteria and kills it.