From whom did Shirley receive that gift?
What part of speech is the bolded word above?
Preposition
"From" relates the gift to the person who gave it to Shirley. Its role as a preposition might be clearer in the answer to this question, "Shirley received that gift from Mike."