Erec is the first poem of Hartmann von Aue and is considered the founding work of Arthurian Legend in German. It is based on Chrétien de Troyes' first romance, Erec and Enide.