Two large-scale compositions occupied a central place in Bach's last years. From around 1742 he wrote and revised the various canons and fugues of The Art of Fugue, which he continued to prepare for publication until shortly before his death.