Maslama ibn Abd al-Malik
During the middle Byzantine period, the city was part of the Thracesian Theme, and from the time of Leo VI the Wise () of the Theme of Samos. The presence of an Armenian community, probably from refugees from the Muslim conquests, is attested during the 7th century, from which the emperor Philippikos () hailed. In 716, Pergamon was sacked again by the armies of Maslama ibn Abd al-Malik. It was again rebuilt and refortified after the Arabs abandoned their Siege of Constantinople in 717–718.