The Canadian province of Quebec came close to becoming an independent country.

The 1995 Quebec referendum was the second referendum to ask voters in Quebec whether the province should declare sovereignty. The vote was incredibly close, with 50.58% of Québécois people voting to remain with Canada.

Source