Well, they work like this.
"Marco, who was riding his bicycle, yelled at me as he went past."
"who was riding his bicycle" is a prepositional phrase. A prepositional phrase is not necessary in a sentence, but it can be used for detail.
"Marco yelled at me as he went past." would still be an acceptable sentence.