DAKAR, Senegal (AP) — Senegal votes Sunday in a tightly contested presidential election that has fired up political tensions and tested one of West Africa’s most stable democracies.

The election will take place after much uncertainty following President Macky Sall’s unsuccessful effort to delay the vote until the end of the year, sparking violent protests.

In the latest turn of events leading up to Sunday’s vote, opposition leader Ousmane Sonko was released from prison last week, triggering jubilant celebrations on the streets of Dakar and renewed excitement about the contest.

Sunday’s election is set to be Senegal’s fourth democratic transfer of power since it gained independence from France in 1960. The country is viewed as a pillar of stability in a region that has seen dozens of coups and attempted coups in recent years.