Take off your hat inside the room.

Literal

Room's inside [at-では] hat [object-を] take-off [imperative-なさい].

A manners instruction. The では adds contrastive emphasis: 'when inside (as opposed to outside).'