In July 1277 Edward invaded with a force of 15,500 of whom 9,000 were Welshmen. The campaign never came to a major battle, and Llywelyn soon realised he had no choice but to surrender. By the Treaty of Aberconwy in November 1277, he was left only with the land of Gwynedd, but he was allowed to keep the title of Prince of Wales.