Answer
Emperor Xuanzong, the Tang emperor, was the one who favored An Lushan. An Lushan was a military general who rose to prominence during the Tang dynasty. He gained favor with Emperor Xuanzong through his military victories and his ability to entertain the emperor. An Lushan's favor with the emperor allowed him to rise through the ranks and eventually become one of the most powerful generals in the Tang army.