This article introduces a novel database on investment treaties called the Electronic Database of Investment Treaties (EDIT). We describe the genesis of the database and what makes EDIT the most comprehensive and systematic database to date. What stands out besides the coverage is that treaties are all provided in one single language (English) and in one single format that is machine-readable. In the second part of the article, we provide selected illustrations on how the data can be used to address research questions in international law, international political economy, and international relations by applying text-as-data methods and by extracting and visualizing data based on EDIT.