What is the main function of the fool in "King Lear"? What is the secondly function?

The fool as a character is confusing, but part of this is the difference between the 1600s and today, as well as the difference in place. If...