J.S. Bach married his second wife in 1721. After their marriage, the couple started right away on a Keyboard Notebook for Anna Magdalena's practice. Eventually they collected two separate books, which are known today as the Notebook for Anna Magdalena Bach.