What war ended in 1479?