To date, forty-seven women and three men have been married to a British prime minister in office. There have also been four bachelor and nine widower prime ministers; the last bachelor was Edward Heath (1970–1974) and the last widower was Ramsay MacDonald. The Duke of Grafton (1768–1770) and Boris Johnson (2019–2022) are the only prime ministers to have divorced and remarried while in office.