The groom was the man with a hat.the man is a noun phrase based on the noun man. with a hat is a preposition phrase telling you more about the noun man. with a hat goes after the noun man to make the expanded noun phrase the man with a hat.