What is a trademark?

a trademark is a mark you use for trading your good. for example, if you have a computer business and you trademark name is microsoft, no one in the world can use that name for computer related business. but lets say there is a company that makes bricks their company can be called microsoft because they are not related to computers.