In 356 BC the Phocians under Philomelos captured and sacked Delphi, leading to the Third Sacred War (356–346 BC), which ended with the defeat of the former and the rise of Macedon under the reign of Philip II . This led to the Fourth Sacred War (339 BC), which culminated in the Battle of Chaeronea (338 BC) and the establishment of Macedonian rule over Greece. In Delphi, Macedonian rule was superseded by the Aetolians in 279 BC, when a Gallic invasion was repelled, and by the Romans in 191 BC. The site was sacked by Lucius Cornelius Sulla in 86 BC, during the Mithridatic Wars , and by Nero in 66 AD. Although subsequent Roman emperors of the Flavian dynasty contributed towards to the restoration of the site, it gradually lost importance until it was shut by Theodosius I in 381 AD.