2 of 4 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 by Lord Krishna. What is the reason behind this end of a Great person ?

Why did Lord Krishna given end to Karna 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 by Lord Krishna. What is the reason behind this end of a Great person ?