 Margaret had opposed the war, but was still named in the royal will as regent for the infant king, James V, for as long as she remained a widow.Parliament met at Stirling not long after Flodden, and confirmed Margaret in the office of regent.A woman was rarely welcome in a position of supreme power, and Margaret was the sister of an enemy king, which served to compound her problems.