I said goodbye to them at the gate.

Literal

Gate [gen-の] place [at-で] them [to-に] farewell [obj-を] told.

別れを告げる ('bid farewell,' lit. 'tell a parting') is a fixed expression. 告げる ('announce, tell') is a slightly formal verb for making a declaration. The に marks the addressee of the goodbye.