~ようだ can express the speaker's judgement done by observation other than "as if." For example, 外は雨が降っているようだ。 can also mean "It seems that it's raining outside (judging from the view, sounds etc.)." まるで is used to reinforce the meaning "as if."
e.g.
外はまるで雨が降っているようだ。
It looks as if it were raining outside. (= It's actually not raining.)
However, まるで~ようだ doesn't always mean "as if".
e.g.
まるで日本語がわからないようだ。
This sentence is ambiguous. まるで can mean both "(not) at all" and "as if" here. You need to use other expressions when the meaning is unclear even from the context, for instance どうやら日本語が全くわからないようだ or あたかも日本語がわからないかのようだ.