4 of 4 added 37 characters in body

Why did Lord Krishna end Karna's life in such a way?

Karna was the only person who was able to defeat Arjuna. Karna was stronger and kinder than Arjuna, but still he got an undeserved death at the hands of Arjuna,on the advice of Lord Krishna. What is the reason behind ending the life of a great person?