In the meantime the course of events had left as sole autocrat of the Roman Empire his cousin Constantius, who, feeling himself unequal to the enormous task, called Julian's brother Gallus to a share of power, and in March 351 appointed him Caesar. At the same time Julian was permitted to return to Constantinople, where he studied grammar under Nicocles and rhetoric under the Christian sophist Hecebolius. After a short stay in the capital Julian was ordered to remove to Nicomedia, where he made the acquaintance of some of the most eminent rhetoricians of the time, and became confirmed in his secret devotion to the pagan faith. He promised not to attend the lectures of Libanius, but bought and read them. But his definite conversion to paganism was attributed to the neo-platonist Maximus of Ephesus, who may have visited him at Nicomedia. The downfall of Gallus (354), who had been appointed governor of the East, again exposed Julian to the greatest danger. By his rash and headstrong conduct Gallus had incurred the enmity of Constantius and the eunuchs, his confidential ministers, and was put to death. Julian fell under a like suspicion, and narrowly escaped the same fate. For some months he was confined at Milan (_Mediolanum_) till at the intercession of the empress Eusebia, who always felt kindly towards him, permission was given him to retire to a small property in Bithynia. While he was on his way, Constantius recalled him, but allowed--or rather ordered--him to take up his residence at Athens. The few months he spent there (July-October 355) were probably the happiest of his life.
The emperor Constantius and Julian were now the sole surviving male members of the family of Constantine; and, as the emperor again felt himself oppressed by the cares of government, there was no alternative but to call Julian to his assistance. At the instance of the empress he was summoned to Milan, where Constantius bestowed upon him the hand of his sister Helena, together with the title of Caesar and the government of Gaul.
A task of extreme difficulty awaited him beyond the Alps. During recent troubles the Alamanni and other German tribes had crossed the Rhine; they had burned many flourishing cities, and extended their ravages far into the interior of Gaul. The internal government of the province had also fallen into great confusion. In spite of his inexperience, Julian quickly brought affairs into order. He completely overthrew the Alamanni in the great battle of Strassburg (August 357). The Frankish tribes which had settled on the western bank of the lower Rhine were reduced to submission. In Gaul he rebuilt the cities which had been laid waste, re-established the administration on a just and secure footing, and as far as possible lightened the taxes, which weighed so heavily on the poor provincials. Paris was the usual residence of Julian during his government of Gaul, and his name has become inseparably associated with the early history of the city.