Ampicillin is a semi-synthetic penicillin antibiotic derived from penicillin G. It works by inhibiting the synthesis of the bacterial cell wall. Ampicillin is produced through a fermentation process using the fungus Penicillium chrysogenum and has a broader spectrum of activity than natural penicillin by targeting both gram-positive and gram-negative bacteria. Its structure contains the basic penicillin structure with an added amino group that increases its effectiveness. Purification after fermentation is required to remove other substances to produce a pure product suitable for medical use.