The first female prime minister of the United Kingdom was Margaret Thatcher, who served from 1979 to 1990. Thatcher was a Conservative politician who was known for her tough stance on economic policy and her role in the Cold War. She was also the longest-serving British prime minister of the 20th century.