Prince of Wales was a title granted to princes born in Wales from the 12th century onwards; the term replaced the use of the word king. One of the last Welsh princes, Llywelyn ap Gruffudd, was killed in battle in 1282 by Edward I, king of England, whose son Edward, born in Caernarfon Castle, was invested as Prince of Wales: the first English person to claim the title.