the bottom part of a hat that sticks out to protect you from sun and rain:
an old straw hat with a broad brim
the top edge of a container:
She filled each glass to the brim.
filled/full to the brim (=completely full)
The cup was filled to the brim with coffee.