How did llywelyn the last die?

Born in 1223, 'Llywelyn the Last', died December 11, 1282. He was the last prince of independent Wales before Edward I of England conquered Wales.