There was nobody in the room.

Literal

Room [in-には] nobody existed-not.

誰もいなかった is the past-tense form of the 誰も~ない universal-negation pattern — 'nobody was there.' A clean, common scene-setting line.