The Tragedy of King Lear, often shortened to King Lear, is a tragedy written by William Shakespeare. It is loosely based on the mythological Leir of Britain.