Studies have documented how ethnic and religious sentiments shape the voting behavior of Indonesian Muslims. However, to date no studies have carefully measured the relative influence of these sentiments. I fill this gap in the literature by taking advantage of the candidacy of a Christian, ethnic Chinese candidate in the 2017 Jakarta gubernatorial election in Basuki Tjahaja Purnama (Ahok). Employing an original survey of Jakartan Muslims, I show through experimental and correlational analyses that Muslim voters are more opposed to Ahok than non-Muslim voters are and that this opposition is driven more by Ahok's ethnicity, as opposed to his religion. I also show that Muslim voters’ feelings toward ethnic Chinese shape their support for Ahok more than their feelings toward Christians. I discuss how these findings inform our understanding of the limits and extent of religious influence on Muslim voting behavior.