ADADO, Somalia

ABOVE the shimmering horizon, in the middle of a deserted highway, stands an oversize figure wearing a golf cap, huge sunglasses, baggy jeans, and an iPhone on his hip, not your typical outfit in war-torn Somalia. But then again, Mohamed Aden, the man waiting in the road, is not your typical Somali. The instant his guests arrive, he spreads his arms wide, ready for a bear hug.

“Welcome to Adado,” he says, beaming. “Now, let’s bounce.”

Mr. Aden, 37, is part militia commander, part schoolteacher, part lawmaker, part engineer, part environmentalist, part king  a mind-boggling combination of roles for anyone to play, let alone for a guy who dresses (and talks) like a rapper and recently moved from Minnesota to Somalia in an effort to build a local government.

Think of him as the accidental warlord. And a shard of hope. In less than a year, Mr. Aden, who was born in Somalia and emigrated to the United States at age 22, has essentially built a state within a state.

With money channeled from fellow clansmen living in the United States and Europe, he has transformed Adado and its surroundings in central Somalia, which used to be haunted by bandits and warring Islamic factions, into an enclave of peace, with a functioning police force, scores of new businesses, new schools and new rules.