أَغْلَقْتُ الْبَابَ خَوْفًا مِنَ الْبَرْدِ
Translation: I closed the door out of fear of the cold.
أَغْلَقْتُ: past verb plus first-person subject.
الْبَابَ: accusative direct object.
خَوْفًا: accusative expression of cause.
مِنَ الْبَرْدِ: prepositional phrase describing the object of fear.
An added example contrasting what was closed (object) with why it was closed (reason).