For example, if you're flying from the US to Europe and have a layover in one Schengen Area country before you arrive in a second Schengen Area country, you'll typically go through immigration when you first land, but you won't go through customs until you reach your final destination.