For much of the last century, the mountainous region of Swat was ruled as a princely kingdom where a benign autocrat, the wali, bestowed schools for girls, health care for everyone and the chance to get a degree abroad for the talented.
Source: wiktionary