Here's why:
* Preposition: "with" is the preposition.
* Object of the Preposition: "them" is the object of the preposition.
* Function: The phrase "with them" acts as an adverbial phrase, modifying the verb "took" by telling us where Marco was taken.