Subject + 给 + Recipient + Verb + Object
给 (gěi) as a preposition indicates the recipient or beneficiary of an action, similar to "to" or "for" in English. It is placed before the verb to introduce who the action is directed toward. This prepositional use is distinct from its role as a main verb meaning "to give."
她给妈妈做了一顿丰盛的晚餐。
Tā gěi māma zuò le yí dùn fēngshèng de wǎncān.
She made a sumptuous dinner for her mom.
我给你带了一杯咖啡。
Wǒ gěi nǐ dài le yì bēi kāfēi.
I brought you a cup of coffee.
他给孩子们讲了一个有趣的故事。
Tā gěi háizimen jiǎng le yí gè yǒuqù de gùshi.
He told the children an interesting story.