In the sentence "The competing teams shook hands after the game was over," the participle is "competing."
Its function is to act as a modifier, specifically an adjective, that describes the noun "teams." It gives more information about the teams by indicating that they are currently engaged in competition.