The answer is twice. Margaret Thatcher, the UK's first female Prime Minister (1979-1990), married Denis Thatcher. Their marriage lasted until Denis's death in 2003. Margaret Thatcher did not remarry.
The Magnificent Margaret Tudor: A Royal Quiz of Scotland's Queen Consort and Regent