Through flashbacks in the episode "Baltimore", it is shown that Tony first met Gibbs sometime in 2001 when he accidentally arrested the latter, who was working undercover and investigating the same suspect in a separate case, as a homicide detective with Baltimore PD.
Tony's relationship with Timothy McGee was initially problematic.