Pachelbel lived the rest of his life in Nuremberg, during which he published the chamber music collection Musicalische Ergötzung, and, most importantly, the Hexachordum Apollinis (Nuremberg, 1699), a set of six keyboard arias with variations. Though most influenced by Italian and southern German composers, he knew the northern German school, because he dedicated the Hexachordum Apollinis to Dieterich Buxtehude. Also composed in the final years were Italian-influenced concertato Vespers and a set of more than ninety Magnificat fugues.