With congressional Republicans and Democrats far apart on a funding agreement, the federal government looks headed toward its first shutdown since 2019. And while shutdowns are rare, they have occurred more often in recent decades.

Funding for the federal government will expire at 12:01 a.m. ET Wednesday, prompting the shutdown unless Congress passes legislation before or shortly after.

Congress has walked up to the edge of a shutdown numerous times in recent years, most recently in March, when the Senate passed a bill hours before the deadline. Funding expired for a few hours until President Donald Trump signed the bill into law, but the general operation of the government was not affected.

Prolonged shutdowns of more than a day or a few days have been rare. The most recent was also the longest one in U.S. history, when a disagreement over funding for Trump’s border wall closed the government for 34 full days.

Since 1976, the U.S. government has shut down a total of 20 times. And while no shutdowns occurred from 1995 to 2013, there have been three in the 12 years since.