anne brought a french court and french advisors with her to hungary. the relationship was happy at least from the king's view, and he is reported to have regarded her as a friend, assistant and a trusted advisor. she incurred debts in venice and was said to favour this city all her life. in 1506, her signature was placed on a document alongside the king's regarding an alliance with the habsburgs. on july 23, 1503 anne gave birth to a daughter, known as anna jagellonica, and on july 1, 1506 to the long-awaited male heir, the future king louis ii. she enjoyed great popularity, but her pregnancies ruined her health. she died in buda on july 26, 1506, a little more than three weeks after the birth of her son due to complications from delivery. she was 22.