Margaret Thatcher, the first woman ever to serve as prime minister of Great Britain and the longest-serving British prime minister of the 20th century, has died at age 87.