Etiquette isn't written into the official Rules of Golf, but it's exactly what other golfers, and your coach, actually notice about how you play. This is the one thing to learn from your very first session, not something to pick up later.
Pace of play comes first
Keeping up with the group ahead of you is one of the most important habits in golf, right from the start. Be ready to play when it's your turn, walk (or ride) with purpose between shots, and don't wait until you're at your ball to start planning the shot. If you fall behind and a faster group is waiting, wave them through: it's completely normal, not an insult.
Never interfere with another player
Stand still, stay quiet, and stay out of their eyeline whenever someone else is about to hit. Never walk, talk, or move where they can see you out of the corner of their eye. On the green, never walk between another player's ball and the hole: your footprints can affect how their putt rolls.
Never ground your club in a bunker
This one is actually a real rule, not just etiquette: you're not allowed to let your club touch the sand before your downswing when your ball is in a bunker. Hover it just above the sand as you set up.
Don't ask what club someone used
It's considered poor etiquette (especially in a competition) to ask another player what club they just hit. Figuring that out is part of their own game, not something to borrow.
In competition, talk to your caddie, not other players
During a competitive round, keep advice-related conversation to your own caddie (or coach, if you have one on the bag). Discussing club choice or strategy with another competitor isn't allowed once the round is serious.
Shake hands after the round
Whatever happened during the round, shake hands with everyone in your group once you finish the 18th (or final) hole. It's the oldest tradition in golf, and it matters.
Leave the course better than you found it
Repair your divots, fix your ball marks on the green, and rake any bunker you play out of before you leave it. The next group through the course notices every one of these, even if they never say anything.
Safety comes first
Never swing until you're sure everyone ahead is well out of range, and call out clearly if a ball is heading toward anyone. This is the one etiquette rule that's really a safety rule.
Phones and noise
Keep your phone on silent and step away from the group if you need to take a call. A quiet course is part of what makes golf golf.