What is a trademark? What functions do trademarks have?

What is a trademark anyway? Many people wonder what a trademark is. Here we will explain it in an easy-to-understand manner, including the functions that a trademark has.