An affinity ionic liquid, based on biomolecular recognition, was developed and found to be capable of quantitative partitioning of biomacromolecules from aqueous buffer to ionic liquid.