The Normans took Dyrrhachium in February 1082 and advanced inland, capturing most of Macedonia and Thessaly. Robert was then forced to leave Greece to deal with an attack on his ally, the Pope Gregory VII, by the Holy Roman Emperor, Henry IV. Robert left his son Bohemond in charge of the army in Greece. Bohemond was initially successful, defeating Alexios in several battles, but he was defeated by Alexios outside Larissa. Forced to retreat to Italy, Bohemond lost all the territory gained by the Normans in the campaign. This victory began the Komnenian restoration.