On the African continent, where elections are often surrounded by accusations of fraud and manipulation, legal avenues for challenging elections may enhance election integrity and trust in political institutions. Court rulings on electoral petitions have consequences for the distribution
of power, but how do they shape public opinion? We theorize and study the way in which court rulings in relation to parliamentary election petitions shape public perceptions of election and judicial legitimacy. Using survey data from the 2016 Zambian election, our results suggest that opposition
voters rate quality of elections lower when courts nullify elections. However, judicial legitimacy seems unaffected even for voters in constituencies where the courts have shown independence vis a vis the executive and nulli' fied parliamentary elections won by the governing party.