In a democracy, the people directly elect government officials.
Literal
Democracy [in-では], people [topic-は] directly government's officials [object-を] choose.
では ('in,' 'at,' 'under') marks the conditional frame — 'in (the case of) X.' It's essentially the locative で with a contrastive は, letting the sentence zoom out to one possible setting.