Which battle lasted five years?