In June 1515, she moved back to the Medici palace in Florence. Though the Republic of Florence was still a republic in name, Lorenzo ruled with his mother's help. The Medici palace became the location where government decisions were made. When Lorenzo took the Florentine army in the summer of 1515 to support Pope Leo and the Spanish in the war against Francis I of France, Alfonsina took up the rule in his name. Though she could not hold an official office, she directed the decisions of the governing councils and edited the letters Lorenzo sent to the councils. The councils noted in their records that decisions had been made "by order of Magnificent Lady Alfonsina." She had her chancellor, Bernardo Fiamminghi, appointed as the secretary of the office which created new laws. She also provided orders on who should be 'elected' to the councils throughout the rest of her son's life. She was also involved in the strategy regarding the war. When the Swiss mercenaries left the Spanish army, she began sending treaty proposals to Francis. Pope Leo asked her to provide the ambassadors to negotiate the treaty with Francis. The treaty included a provision allowing the Medici to continue their rule. She had the responsibility of planning the official visit of Pope Leo to Florence in November 1515 as he was traveling to sign the peace treaty.