Somalia may be the most nonpermissive postconflict setting in the world in which to conduct elections. In 2016–17, to cope with an array of security, political, and logistical impediments to direct elections, a complex, indirect election system was improvised, involving 275 separate electoral colleges and over 14,000 delegates. The process was ad hoc and nonconstitutional, and plagued by vote buying, intimidation, and political interference. But the results were embraced by most Somalis, and the process prevented a political collapse and armed conflict. Somalia’s experiment holds lessons and as well cautionary notes for other efforts to promote elections in nonpermissive postconflict settings.