And through their great efforts in providing services to the poor , they evolved first into de facto social workers and then into local politicians , eventually taking control of cities like Algiers and Oran in Algeria , and Istanbul and Ankara in Turkey .