Tunisia is relatively homogeneous ethnically and lacks sharp sectarian divisions; nonetheless, owing partly to its porous borders with Algeria and Libya, the specter of violence is always present. Indeed, the issue of security dominated both the parliamentary and presidential elections, with all sides claiming to be the best qualified to counter extremism.