Novel ionic liquids containing ampicillin as an active pharmaceutical ingredient anion were prepared with good yields by using a new, efficient synthetic procedure based on the neutralization of a moderately basic ammonia solution of ampicillin with different organic cation hydroxides. The relevant physical and thermal properties of these novel ionic liquids based on ampicillin were also evaluated.