The relatively new exception to copyright law that we enjoy in the UK, permitting text and data mining (TDM) for the purposes of non-commercial research, offers potential to further knowledge and make scientific and medical breakthroughs. Importantly, the new exception states that any contractual clause which purports to restrict this exception is automatically null and void. Librarians who manage electronic resources and datasets can assist researchers greatly. However, in order to do this they need a robust understanding of the law and to be assertive in their relationships with publishers when negotiating or interpreting licence agreements. This article examines the ways in which librarians can facilitate the work of researchers who want to use TDM. It also argues that librarians need to encourage researchers to exploit the new copyright exceptions as key partners in the research process.