No rule for this one
No ending or word group predicts the article of Zug. Learn it as a pair and say it out loud: der Zug.
der Zug
It's der Zug. Zug is masculine, plural die Züge.
Der Zug fährt nach Köln.
The train goes to Cologne.
No ending or word group predicts the article of Zug. Learn it as a pair and say it out loud: der Zug.