A new high-performance liquid chromatographic method with column switching has been developed for the simultaneous determination of metampicillin and its metabolite ampicillin in biological fluids. The plasma, urine and bile samples were injected onto a precolumn packed with LiChrosorb RP-8 (25-40 microns) after simple dilution with an internal standard solution in 0.05 M phosphate buffer (pH 7.0). The polar plasma components were washed out using 0.05 M phosphate buffer (pH 7.0). After valve switching, the concentrated drugs were eluted in the back-flush mode and separated by an Ultracarb 5 ODS-30 column with a gradient system of acetonitrile-0.02 M phosphate buffer (pH 7.0) as the mobile phase. The method showed excellent precision, accuracy and speed with a detection limit of 0.1 microgram/ml. The total analysis time per sample was less than 40 min and the coefficients of variation for intra- and inter-assay were less than 5.1%. This method has been successfully applied to plasma, urine and bile samples from rats after intravenous injection of metampicillin.