A Doll's House was based on the life of Laura Kieler (maiden name Laura Smith Petersen), a good friend of Ibsen. Much that happened between Nora and Torvald happened to Laura and her husband, Victor. Much like the play, Laura signs the illegal loan in order to save her husband. She wants the money to find a cure for her husband's tuberculosis. She had penned him to ask for his recommendation of her work to his publisher. She thought the sales of her book would repay her debt. At his refusal, she forged a check for the money. At this point she was found out. In real life, when Victor discovered about Laura's secret loan, he divorced her and had her committed to an asylum. Two years later, she returned to her husband and children at his urging, and she went on to become a well-known Danish author, living to the age of 83.
Ibsen wrote A Doll's House at the point when Laura Kieler had been committed to the asylum, and the fate of this friend of the family shook him deeply, perhaps also because Laura had asked him to intervene at a crucial point in the scandal, which he did not feel able or willing to do. Instead, he turned this life situation into an aesthetically shaped, successful drama. In the play, Nora leaves Torvald with head held high, though facing an uncertain future given the limitations single women faced in the society of the time.
Kieler eventually rebounded from the shame of the scandal and had her own successful writing career while remaining discontented with sole recognition as "Ibsen's Nora" years afterwards