Ronald Reagan's tenure as the 40th president of the United States began with his first inauguration on January 20, 1981, and ended on January 20, 1989. Reagan, a Republican from California, took office after defeating the Democratic incumbent president Jimmy Carter and independent congressman John B. Anderson in the 1980 presidential election. Four years later, he won re-election in the 1984 presidential election, after defeating the Democratic nominee Walter Mondale. Bush was constitutionally limited to two terms and was succeeded by his vice president, George H. W. Bush, who won the 1988 presidential election. Reagan's 1980 landslide election resulted from a conservative shift to the right in American politics, including a loss of confidence in liberal, New Deal, and Great Society programs and priorities that had dominated the national agenda since the 1930s.
Domestically, the Reagan administration enacted a major tax cut, sought to cut non-military spending, and eliminated federal regulations. The administration's economic policies, known as "Reaganomics", were inspired by supply-side economics. The combination of tax cuts and an increase in defense spending led to budget deficits, and the federal debt increased significantly during Reagan's tenure. Reagan signed the Tax Reform Act of 1986, simplifying the tax code by reducing rates and removing several tax breaks, and the Immigration Reform and Control Act of 1986, which enacted sweeping changes to U.S. immigration law and granted amnesty to three million illegal immigrants. Reagan also appointed more federal judges than any other president, including four Supreme Court Justices.