To take off one's hat (from one's head), often as a sign of respect or greeting.
部屋に入るときは帽子を取るのが礼儀だ。
It's proper etiquette to take off your hat when entering a room.
彼は挨拶して帽子を取った。
He greeted us and took off his hat.
暑かったので、外で帽子を取って汗を拭いた。
It was hot, so I took off my hat outside and wiped my sweat.