A swarm of bees attacked the bear that was trying to steal their honey.这里that是什么用法?

问题描述:

A swarm of bees attacked the bear that was trying to steal their honey.
这里that是什么用法?

that引导定语从句,并在从句中作主语,该从句修饰先行词the bear
意:一大群蜜蜂攻击那头试图偷走他们蜂蜜的熊.