The structure of a bacterial cocaine esterase provides important new insight into the selectivity of the carboxylesterase enzyme family and the information gained from this work could lead to improved catalytic antibody-based therapies for cocaine toxicity.