In around 1390, the Carmelite Monastery of Our Lady of Abensberg was founded by Count John II and his wife, Agnes. Although Abensberg was an autonomous city, it remained dependent on the powerful Dukes of Bavaria. The last Lord of Abensberg, Niclas, Graf von Abensberg, supposedly named after his godfather, Nicholas of Kues, a Catholic cardinal, was murdered in 1485 by Christopher, a Duke of Bavaria-Munich. The year before, Niclas had unchivalrously taken Christopher captive as he bathed before a tournament in Munich. Although Christopher renounced his claim for revenge, he lay in wait for Niclas in Freising. When the latter arrived, he was killed by Seitz von Frauenberg. He is buried in the former convent of Abensberg.